isogeo_pysdk.models.event module

Isogeo API v1 - Model of Event entity

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

class isogeo_pysdk.models.event.Event(_id=None, date=None, description=None, kind=None, parent_resource=None, waitForSync=1)

Bases: object

Events are entities included as subresource into metadata for data history description.

Example

{
    '_id': string (uuid),
    'date': string (datetime),
    'description': string,
    'kind': string
}
ATTR_CREA = {'date': <class 'str'>, 'description': <class 'str'>, 'kind': <class 'str'>, 'waitForSync': <class 'bool'>}
ATTR_MAP = {}
ATTR_TYPES = {'_id': <class 'str'>, 'date': <class 'str'>, 'description': <class 'str'>, 'kind': <class 'str'>, 'parent_resource': <class 'str'>}
property date: str

Gets the date of this Event.

Returns

The date of this Event.

Return type

str

property description: str

Gets the description of this Event.

Returns

The description of this Event.

Return type

str

property kind: str

Gets the kind of this Event.

Returns

The kind of this Event.

Return type

str

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