module documentation
Request arguments that are passed in all the SDK requests.
Usage:
from nebius.aio.request_kwargs import RequestKwargs
from typing_extensions import Unpack # or from typing import Unpack in Python 3.11+
from nebius.api.nebius... import SomeService, SomeRequest # illustrative only
def my_request_wrapper(some_arg, **kwargs: Unpack[RequestKwargs]):
request = SomeRequest(arg=some_arg) # build your request here
return SomeService(sdk).some_method( # initialize your service client
request,
**kwargs, # pass the request kwargs along with the service call
)
result = await my_request_wrapper(
some_arg="value",
timeout=5.0,
retries=2,
)
| Class | |
Encapsulates the general keyword arguments for any request. |
| Class | |
Encapsulates the general keyword arguments for all requests, including operation wait requests, where some parameters are overridden or renamed. The full set of parameters is available in RequestKwargs... |