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.

Renvoie:

The content of this License.

Type renvoyé:

str

property count: int

Gets the count of this License.

Renvoie:

The count of this License.

Type renvoyé:

int

Gets the link (URL) of this License.

Renvoie:

The link (URL) of this License.

Type renvoyé:

str

property name: str

Gets the name of this License.

Renvoie:

The name of this License.

Type renvoyé:

str

property owner

Gets the owner of this License.

Renvoie:

The owner of this License.

Type renvoyé:

Workgroup

to_dict()

Returns the model properties as a dict.

Type renvoyé:

dict

to_dict_creation()

Returns the model properties as a dict structured for creation purpose (POST)

Type renvoyé:

dict

to_str()

Returns the string representation of the model.

Type renvoyé:

str