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: 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.

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