isogeo_pysdk.models.conformity module

Isogeo API v1 - Model of Conformity entity


class isogeo_pysdk.models.conformity.Conformity(conformant: bool = None, specification: dict = None, parent_resource: str = None)[source]

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.

  • _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
    "conformant": "bool",
    "specification": "string",
ATTR_CREA = {'conformant': 'bool', 'specification': <class 'isogeo_pysdk.models.specification.Specification'>}
ATTR_TYPES = {'conformant': <class 'bool'>, 'parent_resource': <class 'str'>, 'specification': <class 'isogeo_pysdk.models.specification.Specification'>}

Gets the conformant status.

Returns:The conformant status
Return type:bool

Gets the parent_resource of this Conformity.

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

Gets the specification of this Conformity.

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