isogeo_pysdk.models.bulk_request module

Isogeo API v1 - Model of Metadata bulk request

See: https://github.com/isogeo/isogeo-api-py-minsdk/issues/133

class isogeo_pysdk.models.bulk_request.BulkRequest(action=None, model=None, query=None, target=None)

Bases: object

Bulk request used to perform batch operation add/remove/update on Isogeo resources (= metadatas)

ATTR_TYPES = {'action': <class 'object'>, 'model': <class 'int'>, 'query': <class 'dict'>, 'target': <class 'list'>}
property action: str

Gets the abilities of this Bulk Request.

Returns

The abilities of this Bulk Request.

Return type

str

property model: list

Gets the created of this Bulk Request.

Returns

The created of this Bulk Request.

Return type

list

property query: dict

Gets the modified of this Bulk Request.

Returns

The modified of this Bulk Request.

Return type

dict

property target: str

Gets the tag of this Bulk Request.

Returns

The tag of this Bulk Request.

Return type

str

to_dict()

Returns the model properties as a dict.

Return type

dict

to_str()

Returns the string representation of the model.

Return type

str