class AllocationServiceClient(ClientWithOperations[
Constructor: AllocationServiceClient(channel)
AllocationService provides operations for managing allocations.
This class provides client methods for the nebius.vpc.v1.AllocationService service.
| Class Method | get |
Return the protobuf service descriptor from the registry. |
| Method | create |
Creates a new allocation with the specified configuration. |
| Method | delete |
Deletes an allocation by its ID. |
| Method | get |
Retrieves an allocation by its ID. |
| Method | get |
Retrieves an allocation by its name within a specified parent. |
| Method | list |
Lists allocations within a specified parent. |
| Method | list |
Lists allocations across regions for the specified parent. |
| Method | list |
Lists allocations from a specified pool. |
| Method | list |
Lists allocations available to a specified subnet, including unassigned allocations from compatible pools. |
| Method | operation |
Return the client that manages long-running operations. |
| Method | update |
Updates an existing allocation with new configuration parameters. |
| Constant | __PB2 |
Alias for code that expects a protobuf service descriptor. |
| Class Variable | __api |
API gateway name for service routes. |
| Class Variable | __operation |
RPC method that supplies the operation route. |
| Class Variable | __operation |
Message type representing a long-running operation. |
| Class Variable | __service |
Fully qualified protobuf service name for RPC routes. |
| Instance Variable | __operation |
Undocumented |
Inherited from ClientWithOperations:
| Method | __init__ |
Initialize the client-with-operations. |
| Class Variable | __operation |
the client class used to manage operations. |
Inherited from Client (via ClientWithOperations):
| Method | request |
Construct a nebius.aio.request.Request for an RPC. |
| Method | stream |
Construct a native async request for a streaming RPC shape. |
| Class Variable | __registry__ |
Descriptor registry for request metadata. |
| Class Variable | __service |
Optional deprecation message. The client writes this message to the warning log when it starts. |
| Instance Variable | _channel |
Undocumented |
CreateAllocationRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ CreateAllocationRequest, nebius.aio.operation.Operation[ Operation]]:
(source)
¶
Creates a new allocation with the specified configuration.
The request object is returned without starting the RPC.
DeleteAllocationRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ DeleteAllocationRequest, nebius.aio.operation.Operation[ Operation]]:
(source)
¶
Deletes an allocation by its ID.
The request object is returned without starting the RPC.
GetAllocationRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ GetAllocationRequest, Allocation]:
(source)
¶
Retrieves an allocation by its ID.
The request object is returned without starting the RPC.
GetAllocationByNameRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ GetAllocationByNameRequest, Allocation]:
(source)
¶
Retrieves an allocation by its name within a specified parent.
The request object is returned without starting the RPC.
ListAllocationsRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ ListAllocationsRequest, ListAllocationsResponse]:
(source)
¶
Lists allocations within a specified parent.
The request object is returned without starting the RPC.
ListAggregatedAllocationsRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ ListAggregatedAllocationsRequest, ListAllocationsResponse]:
(source)
¶
Lists allocations across regions for the specified parent.
The request object is returned without starting the RPC.
ListAllocationsByPoolRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ ListAllocationsByPoolRequest, ListAllocationsResponse]:
(source)
¶
Lists allocations from a specified pool.
The request object is returned without starting the RPC.
ListAllocationsBySubnetRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ ListAllocationsBySubnetRequest, ListAllocationsResponse]:
(source)
¶
Lists allocations available to a specified subnet, including unassigned allocations from compatible pools.
The request object is returned without starting the RPC.
UpdateAllocationRequest, **kwargs: Unpack[ RequestKwargs]) -> Request[ UpdateAllocationRequest, nebius.aio.operation.Operation[ Operation]]:
(source)
¶
Updates an existing allocation with new configuration parameters.
The request object is returned without starting the RPC.
Alias for code that expects a protobuf service descriptor.
| Value |
|