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'>, '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

Shortcut to know if the Specification is owned by Isogeo or a workgroup.

Returns:
  • None if tag is None too
  • True if the specification is owned by Isogeo = locked
  • False if the specification is owned by a workgroup = not locked

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.