models.pagination_parameters module

class models.pagination_parameters.PaginationParameters(after_cursor_entity_id=None, before_cursor_entity_id=None, node_id=None, page_size=None)[source]

Bases: object

Implementation of the ‘PaginationParameters’ model.

Specifies the cursor based pagination parameters for Protection Source and its children. Pagination is supported at a given level within the Protection Source Hierarchy with the help of before or after cursors. A Cursor will always refer to a specific source within the source dataset but will be invalidated if the item is removed.

Attributes:
after_cursor_entity_id (long|int): Specifies the entity id starting

from which the items are to be returned.

before_cursor_entity_id (long|int): Specifies the entity id upto which

the items are to be returned.

node_id (long|int): Specifies the entity id for the Node at any level

within the Source entity hierarchy whose children are to be paginated.

page_size (long|int): Specifies the maximum number of entities to be

returned within the page.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.