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: str = None, description: str = None, license: dict = None, parent_resource: str = None)[source]

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() → 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