class documentation

class ResourceAdviceServiceClient(client.Client): (source)

Constructor: ResourceAdviceServiceClient(channel)

View In Hierarchy

ResourceAdvisorService provides insights into capacity availability for various resources. It helps users understand where they can launch instances or allocate storage based on their quotas and the current physical capacity in the data centers.

This class provides the client methods for the .nebius.capacity.v1.ResourceAdviceService service.

Each method constructs a nebius.aio.request.Request object that represents the in-flight RPC. The request can be awaited (async) or waited synchronously using its .wait() helpers.

The request methods accept various parameters to configure metadata, timeouts, authorization, and retries. See individual method docstrings for details.

Method list Returns a list of resource advice entries for the caller's tenant. Each entry represents a unique combination of region, fabric, platform, and preset (e.g., gpu-b200-sxm / 8gpu-160vcpu-1792gb in us-central1-b) and reports current capacity availability across three allocation types: reserved, on-demand, and preemptible...
Constant __PB2_DESCRIPTOR__ The protobuf service descriptor extraction function.
Class Variable __service_name__ The full protobuf service name.

Inherited from Client:

Method __init__ Create a client bound to a channel.
Method request Construct a nebius.aio.request.Request for an RPC.
Class Variable __service_deprecation_details__ optional deprecation message emitted as a runtime warning when the client is constructed.
Instance Variable _channel Undocumented

Returns a list of resource advice entries for the caller's tenant. Each entry represents a unique combination of region, fabric, platform, and preset (e.g., gpu-b200-sxm / 8gpu-160vcpu-1792gb in us-central1-b) and reports current capacity availability across three allocation types: reserved, on-demand, and preemptible. Use this method to determine where and which compute instances can be launched given the tenant's quotas, capacity block groups, and the current physical capacity in data centers. Supports filtering by region, resource type, or platform.

Other parameters can be provided as keyword arguments in the **kwargs dictionary, including metadata, timeouts, and retries. See nebius.aio.request_kwargs.RequestKwargs for details.

Parameters
request:nebius.api.nebius.capacity.v1.ListResourceAdviceRequestThe request object to send.
**kwargs:typing_extensions.Unpack[request_kwargs.RequestKwargs]Undocumented
Returns
nebius.aio.request.Request of nebius.api.nebius.capacity.v1.ListResourceAdviceResponse.A nebius.aio.request.Request object representing the in-flight RPC. It can be awaited (async) or waited synchronously using its .wait() helpers.
__PB2_DESCRIPTOR__ = (source)

The protobuf service descriptor extraction function.

Value
descriptor.DescriptorWrap[descriptor_1.ServiceDescriptor]('.nebius.capacity.v1.R
esourceAdviceService',
                                                          resource_advice_service_pb2.DESCRIPTOR
,
                                                          descriptor_1.ServiceDescriptor
)
__service_name__: str = (source)

The full protobuf service name.