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'>}
- property content: str
Gets the content of this License.
- Returns
The content of this License.
- Return type
- property link: str
Gets the link (URL) of this License.
- Returns
The link (URL) of this License.
- Return type
- property owner
Gets the owner of this License.
- Returns
The owner of this License.
- Return type
- to_dict_creation()
Returns the model properties as a dict structured for creation purpose (POST)
- Return type