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: list = None, _id: str = None, _tag: str = None, count: int = None, content: str = None, link: str = None, name: str = None, owner: dict = None)[source]

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

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
owner

Gets the owner of this License.

Returns:The owner of this License.
Return type:Workgroup
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.