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, 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, 'kind': string, 'parent_resource': string (uuid), 'size': int, 'title': string, 'type': string, 'url': string }
-
ATTR_CREA
= {'actions': <class 'list'>, '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'>, 'kind': <class 'str'>, 'link': <class 'dict'>, 'parent_resource': <class 'str'>, 'size': <class 'int'>, 'title': <class 'str'>, 'type': <class 'str'>, 'url': <class 'str'>}¶
-
actions
¶ Gets the actions of this Link.
Returns: The actions of this Link. Return type: list
-
kind
¶ Gets the kind of this Link.
Returns: The kind of this Link. Return type: str
-
link
¶ Gets the associated link of this Link.
Returns: The associated link of this Link. Return type: dict
-
size
¶ Gets the size of the hosted data.
Returns: The size of the hosted data. Return type: int
-
title
¶ Gets the title of this Link.
Returns: The title of this Link. Return type: str
-
to_dict
()¶ Returns the model properties as a dict.
Return type: dict
-
to_dict_creation
()¶ Returns the model properties as a dict structured for creation purpose (POST)
Return type: dict
-
to_str
()¶ Returns the string representation of the model.
Return type: str
-
type
¶ Gets the type of this Link.
Returns: The type of this Link. Return type: str
-
url
¶ Gets the url of this Link.
Return type: str
Returns: The url of this Link. Rurl: str
-