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, noGeoDatasets=None, id=None, name=None, parentUid=None, mimeTypes=None, targetDataset=None, titles=None, title=None, type=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",
    "type": "string,
    "targetDataset": {
        "format": string,
        "name": string
    }
}
ATTR_CREA = {'name': <class 'str'>, 'parentUid': <class 'str'>, 'targetDataset': <class 'dict'>, 'title': <class 'str'>, 'titles': <class 'list'>, 'type': <class 'str'>}
ATTR_MAP = {'name': 'id'}
ATTR_TYPES = {'_id': <class 'str'>, 'dataset': <class 'dict'>, 'datasets': <class 'list'>, 'mimeTypes': <class 'str'>, 'name': <class 'str'>, 'noGeoDatasets': <class 'list'>, 'parentUid': <class 'str'>, 'targetDataset': <class 'dict'>, 'title': <class 'str'>, 'titles': <class 'list'>, 'type': <class 'str'>}
property dataset: dict

Gets the dataset used for Isogeo filters of this ServiceLayer.

Renvoie:

The dataset of this ServiceLayer.

Type renvoyé:

dict

property datasets: list

Gets the datasets used for Isogeo filters of this ServiceLayer.

Renvoie:

The datasets of this ServiceLayer.

Type renvoyé:

list

property mimeTypes: str

Gets the mimeTypes of this ServiceLayer.

Renvoie:

The mimeTypes of this ServiceLayer.

Type renvoyé:

str

property name: str

Gets the name used for Isogeo filters of this ServiceLayer.

Renvoie:

The name of this ServiceLayer.

Type renvoyé:

str

property noGeoDatasets: list

Gets the noGeoDatasets used for Isogeo filters of this ServiceLayer.

Renvoie:

The noGeoDatasets of this ServiceLayer.

Type renvoyé:

list

property parentUid: str

Gets the parentUid of this ServiceLayer.

Renvoie:

The parentUid of this ServiceLayer.

Type renvoyé:

str

property targetDataset: dict

Gets the targetDataset of this ServiceLayer.

Renvoie:

The targetDataset of this ServiceLayer.

Type renvoyé:

dict

property title: str

Gets the title of this ServiceLayer.

Renvoie:

The title of this ServiceLayer.

Type renvoyé:

str

property titles: list

Gets the titles of this ServiceLayer.

Renvoie:

The titles of this ServiceLayer.

Type renvoyé:

list

to_dict()

Returns the model properties as a dict.

Type renvoyé:

dict

to_dict_creation()

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

Type renvoyé:

dict

to_str()

Returns the string representation of the model.

Type renvoyé:

str

property type: str

Gets the type of this ServiceLayer.

Renvoie:

The type of this ServiceLayer.

Type renvoyé:

str