isogeo_pysdk.models.specification module

Isogeo API v1 - Model of Specification entity

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

class isogeo_pysdk.models.specification.Specification(_abilities: list = None, _id: str = None, _tag: str = None, count: int = None, link: str = None, name: str = None, owner: dict = None, published: str = None)[source]

Bases: object

Specifications are entities defining rules of data creation.

Example:
{
    '_abilities': [],
    '_id': 'string (uuid)',
    '_tag': 'specification:isogeo:string (uuid)',
    'count': int,
    'link': string,
    'name': string,
    'published': '2016-06-30T00:00:00'
}
attr_crea = {'link': <class 'str'>, 'name': <class 'str'>, 'published': <class 'str'>}
attr_map = {}
attr_types = {'_abilities': <class 'str'>, '_id': <class 'str'>, '_tag': <class 'str'>, 'count': <class 'int'>, 'isLocked': <class 'bool'>, 'link': <class 'str'>, 'name': <class 'str'>, 'owner': <class 'dict'>, 'published': <class 'str'>}
count

Gets the id of this Specification.

Returns:The id of this Specification.
Return type:str
isLocked

Gets the isLocked status of this Specification.

Returns:isLocked status of this Specification
Return type:str

Gets the link (URL) of this Specification.

Returns:The link (URL) of this Specification.
Return type:str
name

Gets the id of this Specification.

Returns:The id of this Specification.
Return type:str
owner

Gets the owner of this Specification.

Returns:The owner of this Specification.
Return type:Workgroup
published

Gets the zip (postal) code of this Specification.

Returns:The zip (postal) code of this Specification.
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