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=None, dataset=None, datasets=None, id=None, name=None, mimeTypes=None, titles=None, title=None, parent_resource=None)

Bases: object

ServiceLayers are entities defining rules of data creation.

Example

{
    "_id": "string (uuid)",
    "id": "string",
    "mimeTypes": [
        "string"
    ],
    "titles": [
        {
            "lang": "string",
            "value": "string"
        }
    ],
    "title": "string"
}
ATTR_CREA = {'name': <class 'str'>, 'title': <class 'str'>, 'titles': <class 'list'>}
ATTR_MAP = {'name': 'id'}
ATTR_TYPES = {'_id': <class 'str'>, 'dataset': <class 'dict'>, 'datasets': <class 'list'>, 'mimeTypes': <class 'str'>, 'name': <class 'str'>, 'title': <class 'str'>, 'titles': <class 'list'>}
property dataset: dict

Gets the dataset used for Isogeo filters of this ServiceLayer.

Returns

The dataset of this ServiceLayer.

Return type

dict

property datasets: list

Gets the datasets used for Isogeo filters of this ServiceLayer.

Returns

The datasets of this ServiceLayer.

Return type

list

property mimeTypes: str

Gets the mimeTypes of this ServiceLayer.

Returns

The mimeTypes of this ServiceLayer.

Return type

str

property name: str

Gets the name used for Isogeo filters of this ServiceLayer.

Returns

The name of this ServiceLayer.

Return type

str

property title: str

Gets the title of this ServiceLayer.

Returns

The title of this ServiceLayer.

Return type

str

property titles: list

Gets the titles of this ServiceLayer.

Returns

The titles of this ServiceLayer.

Return type

list

to_dict()

Returns the model properties as a dict.

Return type

dict

to_dict_creation()

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

Return type

dict

to_str()

Returns the string representation of the model.

Return type

str