isogeo_pysdk.models.service_layer module

Isogeo API v1 - Model of ServiceLayer entity

See: http://help.isogeo.com/api/complete/index.html#definition-serviceLayer

class isogeo_pysdk.models.service_layer.ServiceLayer(_id: str = None, dataset: dict = None, id: str = None, name: str = None, mimeTypes: str = None, titles: list = None, parent_resource: str = None)[source]

Bases: object

ServiceLayers are entities defining rules of data creation.

Example:
{
    "_id": "string (uuid)",
    "id": "string",
    "mimeTypes": [
        "string"
    ],
    "titles": [
        {
            "lang": "string",
            "value": "string"
        }
    ]
}
attr_crea = {'name': <class 'str'>, 'titles': <class 'list'>}
attr_map = {'name': 'id'}
attr_types = {'_id': <class 'str'>, 'dataset': <class 'dict'>, 'mimeTypes': <class 'str'>, 'name': <class 'str'>, 'titles': <class 'list'>}
dataset

Gets the dataset used for Isogeo filters of this ServiceLayer.

Returns:The dataset of this ServiceLayer.
Return type:dict
mimeTypes

Gets the mimeTypes of this ServiceLayer.

Returns:The mimeTypes of this ServiceLayer.
Return type:str
name

Gets the name used for Isogeo filters of this ServiceLayer.

Returns:The name of this ServiceLayer.
Return type:str
titles

Gets the titles of this ServiceLayer.

Returns:The titles of this ServiceLayer.
Return type:list
to_dict() → dict[source]

Returns the model properties as a dict.

to_dict_creation() → dict[source]

Returns the model properties as a dict structured for creation purpose (POST)

to_str() → str[source]

Returns the string representation of the model.