isogeo_pysdk.models.condition module

Isogeo API v1 - Model of Condition entity

See: http://help.isogeo.com/api/complete/index.html#definition-resourceCondition

class isogeo_pysdk.models.condition.Condition(_id=None, description=None, license=None, parent_resource=None)

Bases: object

Conditions are entities defining general conditions of use (CGUs) of a data. It’s mainly composed by a license and a description.

Parameters:
  • _id (str) – object UUID
  • description (str) – description of the condition
  • license (dict) – license object or dict linked to the condition
  • parent_resource (str) – UUID of the metadata containing the condition
Example:
{
    "_id": "string (uuid)",
    "description": "string",
    "license": "string",
}
ATTR_CREA = {'description': 'str', 'license': <class 'isogeo_pysdk.models.license.License'>}
ATTR_MAP = {}
ATTR_TYPES = {'_id': <class 'str'>, 'description': <class 'str'>, 'license': <class 'isogeo_pysdk.models.license.License'>, 'parent_resource': <class 'str'>}
description

Gets the description of this Condition.

Returns:The description of this Condition.
Return type:str
license

Gets the license of this Condition.

Returns:The license of this Condition.
Return type:str
parent_resource

Gets the parent_resource of this Condition.

Returns:The parent_resource of this Condition.
Return type:UUID
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