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: str = None, date: str = None, description: str = None, kind: str = None, parent_resource: str = None, waitForSync: bool = 1)[source]

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'>}
date

Gets the date of this Event.

Returns:The date of this Event.
Return type:str
description

Gets the description of this Event.

Returns:The description of this Event.
Return type:str
kind

Gets the kind of this Event.

Returns:The kind of this Event.
Return type:str
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.