isogeo_pysdk.models.license module¶
Isogeo API v1 - Model of License entity
See: http://help.isogeo.com/api/complete/index.html#definition-license
-
class
isogeo_pysdk.models.license.
License
(_abilities=None, _id=None, _tag=None, count=None, content=None, link=None, name=None, owner=None)¶ Bases:
object
Licenses are entities included as subresource into metadata.
Example: { "_id": "string (uuid)", "content": "string", "count": "integer (int32)", "link": "string", "name": "string" }
- Attributes:
- ATTR_TYPES (dict): basic structure of license attributes. {“attribute name”: “attribute type”}. ATTR_CREA (dict): only attributes used to POST requests. {“attribute name”: “attribute type”}
-
ATTR_CREA
= {'content': 'str', 'link': 'str', 'name': 'str'}¶
-
ATTR_MAP
= {}¶
-
ATTR_TYPES
= {'_abilities': <class 'str'>, '_id': <class 'str'>, '_tag': <class 'str'>, 'content': <class 'str'>, 'count': <class 'int'>, 'link': <class 'str'>, 'name': <class 'str'>, 'owner': <class 'dict'>}¶
-
content
¶ Gets the content of this License.
Returns: The content of this License. Return type: str
-
count
¶ Gets the count of this License.
Returns: The count of this License. Return type: int
-
link
¶ Gets the link (URL) of this License.
Returns: The link (URL) of this License. Return type: str
-
name
¶ Gets the name of this License.
Returns: The name of this License. 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