isogeo_pysdk.models.service_operation module

Isogeo API v1 - Model of ServiceOperation entity

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

class isogeo_pysdk.models.service_operation.ServiceOperation(_id: str = None, mimeTypesIn: str = None, mimeTypesOut: str = None, name: str = None, url: str = None, verb: str = None, parent_resource: str = None)[source]

Bases: object

ServiceOperations are entities defining rules of data creation.

Example:
{
    "_id": "string (uuid)",
    "mimeTypesIn": [
        "string"
    ],
    "mimeTypesOut": [
        "string"
    ],
    "name": "string",
    "url": "string",
    "verb": "string"
}
ATTR_CREA = {'name': <class 'str'>, 'verb': <class 'str'>}
ATTR_MAP = {}
ATTR_TYPES = {'_id': <class 'str'>, 'mimeTypesIn': <class 'list'>, 'mimeTypesOut': <class 'list'>, 'name': <class 'str'>, 'url': <class 'str'>, 'verb': <class 'str'>}
mimeTypesIn

Gets the mimeTypesIn used for Isogeo filters of this ServiceOperation.

Returns:The mimeTypesIn of this ServiceOperation.
Return type:dict
mimeTypesOut

Gets the mimeTypesOut of this ServiceOperation.

Returns:The mimeTypesOut of this ServiceOperation.
Return type:str
name

Gets the name used for Isogeo filters of this ServiceOperation.

Returns:The name of this ServiceOperation.
Return type:str
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.

url

Gets the url of this ServiceOperation.

Returns:The url of this ServiceOperation.
Return type:list
verb

Gets the verb of this ServiceOperation.

Returns:The verb of this ServiceOperation.
Return type:list