isogeo_pysdk.models.limitation module

Isogeo API v1 - Model of Limitation entity

See: http://help.isogeo.com/api/complete/index.html

class isogeo_pysdk.models.limitation.Limitation(_id: str = None, description: str = None, directive: int = None, restriction: str = None, type: str = None, parent_resource: str = None)[source]

Bases: object

Limitations are entities included as subresource into metadata which can contain a Directive.

Example:
{
    "_id": "string (uuid)",
    "description": "string",
    "directive": "dict",
    "restriction": "string",
    "type": "string"
}
attr_crea = {'description': 'str', 'directive': <class 'isogeo_pysdk.models.directive.Directive'>, 'restriction': 'str', 'type': 'str'}
attr_map = {}
attr_types = {'_id': <class 'str'>, 'description': <class 'str'>, 'directive': <class 'int'>, 'parent_resource': <class 'str'>, 'restriction': <class 'str'>, 'type': <class 'str'>}
description

Gets the description of this Limitation.

Returns:The description of this Limitation.
Return type:str
directive

Gets the directive of this Limitation.

Returns:The directive of this Limitation.
Return type:Directive
restriction

Gets the restriction of this Limitation.

Returns:The restriction of this Limitation.
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.

type

Gets the type of this Limitation.

Returns:The type of this Limitation.
Return type:str