isogeo_pysdk.models.link module
Isogeo API v1 - Model of Link entity
See: http://help.isogeo.com/api/complete/index.html#definition-link
- class isogeo_pysdk.models.link.Link(_id=None, actions=None, fileName=None, kind=None, link=None, size=None, title=None, type=None, url=None, parent_resource=None)
Bases:
object
Links are entities included as subresource into metadata for data history title.
- Example
{ '_id': string (uuid), 'actions': list, 'fileName': string, 'kind': string, 'parent_resource': string (uuid), 'size': int, 'title': string, 'type': string, 'url': string }
- ATTR_CREA = {'actions': <class 'list'>, 'fileName': <class 'str'>, 'kind': <class 'str'>, 'link': <class 'dict'>, 'parent_resource': <class 'str'>, 'title': <class 'str'>, 'type': <class 'str'>, 'url': <class 'str'>}
- ATTR_MAP = {}
- ATTR_TYPES = {'_id': <class 'str'>, 'actions': <class 'list'>, 'fileName': <class 'str'>, 'kind': <class 'str'>, 'link': <class 'dict'>, 'parent_resource': <class 'str'>, 'size': <class 'int'>, 'title': <class 'str'>, 'type': <class 'str'>, 'url': <class 'str'>}
- property actions: list
Gets the actions of this Link.
- Returns
The actions of this Link.
- Return type
- property fileName: list
Gets the fileName of this Link.
- Returns
The fileName of this Link.
- Return type
- property link: dict
Gets the associated link of this Link.
- Returns
The associated link of this Link.
- Return type
- property size: int
Gets the size of the hosted data.
- Returns
The size of the hosted data.
- Return type
- to_dict_creation()
Returns the model properties as a dict structured for creation purpose (POST)
- Return type