class xdk.paginator.Cursor
[ResponseType]
パラメーター
PaginatableMethod
__init__
Initialize the cursor.
パラメーター
PaginatableMethod
The API method to call for each page (must support pagination)
items
Iterate over individual items from paginated responses.
パラメーター
int or None
default:"None"
Maximum number of items to return (None for unlimited)
戻り値
IteratorAny
pages
Iterate over pages of responses.
パラメーター
int or None
default:"None"
Maximum number of pages to return (None for unlimited)
戻り値
IteratorResponseType
class xdk.paginator.PaginatableMethod
[ResponseType]
__init__
xdk.paginator.cursor
Create a cursor with proper type inference and validation.
This factory function helps with type inference so you get proper
type hints for the response type, and validates that the method
supports pagination at both static analysis and runtime.
パラメーター
PaginatableMethod
The API method to wrap (must support pagination)