isogeo_pysdk.api.routes_condition module

Isogeo API v1 - API Routes for Conditions entities

See: http://help.isogeo.com/api/complete/index.html

class isogeo_pysdk.api.routes_condition.ApiCondition(api_client=None)[source]

Bases: object

Routes as methods of Isogeo API used to manipulate conditions.

create(metadata: isogeo_pysdk.models.metadata.Metadata, condition: isogeo_pysdk.models.condition.Condition) → isogeo_pysdk.models.condition.Condition[source]

Add a new condition (license + specific description) to a metadata.

Parameters:
  • metadata (Metadata) – metadata object to update
  • condition (Condition) – condition to create
delete(metadata: isogeo_pysdk.models.metadata.Metadata, condition: isogeo_pysdk.models.condition.Condition) → requests.models.Response[source]

Removes a condition from a metadata.

Parameters:
  • metadata (Metadata) – metadata object to update
  • condition (Condition) – license model object to associate
get[source]

Get details about a specific condition.

Parameters:
  • metadata_id (str) – identifier of the owner workgroup
  • condition_id (str) – condition UUID
listing[source]

List metadata’s conditions with complete information.

Parameters:metadata_id (str) – metadata UUID
Returns:the list of conditions associated with the metadata
Return type:list