Reference#
requestmodel#
- class requestmodel.IteratorRequestModel(*, raw_response=None)#
- Parameters:
raw_response (Optional[Response]) –
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'populate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- next_from_response(response)#
Prepare the current object for the next request and return true
In case of cursor pagination set the next token In case of offset pagination increment the offset
- Parameters:
response (ResponseType) –
- Return type:
bool
- send(client)#
Send the request synchronously
- Parameters:
client (Client) –
- Return type:
Iterator[ResponseType]
- class requestmodel.RequestModel(*, raw_response=None)#
- Parameters:
raw_response (Optional[Response]) –
- as_request(client)#
Transform the properties of the object into a request
- Parameters:
client (BaseClient) –
- Return type:
Request
- async asend(client)#
Send the request asynchronously
- Parameters:
client (AsyncClient) –
- Return type:
ResponseType
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'populate_by_name': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- send(client)#
Send the request synchronously
- Parameters:
client (Client) –
- Return type:
ResponseType