isogeo_pysdk.models.conformity module

Isogeo API v1 - Model of Conformity entity

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

class isogeo_pysdk.models.conformity.Conformity(conformant=None, specification=None, parent_resource=None)

Bases: object

Conformity is an entity defining if a data respects a specification. It’s a quality indicator. It’s mainly composed by a specification and a boolean.

Parameters:
  • _id (str) – object UUID
  • conformant (bool) – conformity with the specification
  • specification (dict) – specification object or dict linked to the conformity
  • parent_resource (str) – UUID of the metadata containing the conformity
Example:
{
    "conformant": "bool",
    "specification": "string",
}
ATTR_CREA = {'conformant': 'bool', 'specification': <class 'isogeo_pysdk.models.specification.Specification'>}
ATTR_MAP = {}
ATTR_TYPES = {'conformant': <class 'bool'>, 'parent_resource': <class 'str'>, 'specification': <class 'isogeo_pysdk.models.specification.Specification'>}
conformant

Gets the conformant status.

Returns:The conformant status
Return type:bool
parent_resource

Gets the parent_resource of this Conformity.

Returns:The parent_resource of this Conformity.
Return type:UUID
specification

Gets the specification of this Conformity.

Returns:The specification of this Conformity.
Return type:Specification
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