class documentation

Manages pricing policies for preemptible VMs. Modifying methods return an Operation and support X-Idempotency-Key; the common common.v1.OperationService is implemented as well.

This class provides client methods for the nebius.billing.v1.PricingPolicyService service.

Class Method get_descriptor Return the protobuf service descriptor from the registry.
Method create Creates a pricing policy. A bid outside the allowed price range fails with OUT_OF_RANGE; below the current market price it is accepted but the policy starts SCHEDULING_STATE_BLOCKED. Policies per tenant are quota-limited (RESOURCE_EXHAUSTED past the limit)...
Method delete Deletes a pricing policy. Requires that no VM runs under the policy and nothing is being preempted (FAILED_PRECONDITION otherwise).
Method get The request object is returned without starting the RPC.
Method get_by_name The request object is returned without starting the RPC.
Method list The request object is returned without starting the RPC.
Method operation_service Return the client that manages long-running operations.
Method update Updates a pricing policy. metadata.name may change any time; the bid in spec.pricing.max_price_v1 only while status.running_vm_count is 0 (FAILED_PRECONDITION otherwise). Other spec fields are immutable (INVALID_ARGUMENT).
Constant __PB2_DESCRIPTOR__ Alias for code that expects a protobuf service descriptor.
Class Variable __api_service_name__ API gateway name for service routes.
Class Variable __operation_source_method__ RPC method that supplies the operation route.
Class Variable __operation_type__ Message type representing a long-running operation.
Class Variable __service_name__ Fully qualified protobuf service name for RPC routes.
Instance Variable __operation_service__ Undocumented

Inherited from ClientWithOperations:

Method __init__ Initialize the client-with-operations.
Class Variable __operation_service_class__ 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_request Construct a native async request for a streaming RPC shape.
Class Variable __registry__ Descriptor registry for request metadata.
Class Variable __service_deprecation_details__ Optional deprecation message. The client writes this message to the warning log when it starts.
Instance Variable _channel Undocumented
@classmethod
def get_descriptor(cls): (source)

Return the protobuf service descriptor from the registry.

Creates a pricing policy. A bid outside the allowed price range fails with OUT_OF_RANGE; below the current market price it is accepted but the policy starts SCHEDULING_STATE_BLOCKED. Policies per tenant are quota-limited (RESOURCE_EXHAUSTED past the limit). The Operation completes once the policy is ready to back VMs.

The request object is returned without starting the RPC.

Deletes a pricing policy. Requires that no VM runs under the policy and nothing is being preempted (FAILED_PRECONDITION otherwise).

The request object is returned without starting the RPC.

The request object is returned without starting the RPC.

def get_by_name(self, request: GetByNameRequest, **kwargs: Unpack[RequestKwargs]) -> Request[GetByNameRequest, PricingPolicy]: (source)

The request object is returned without starting the RPC.

The request object is returned without starting the RPC.

def operation_service(self): (source)

Return the client that manages long-running operations.

Updates a pricing policy. metadata.name may change any time; the bid in spec.pricing.max_price_v1 only while status.running_vm_count is 0 (FAILED_PRECONDITION otherwise). Other spec fields are immutable (INVALID_ARGUMENT).

The request object is returned without starting the RPC.

__PB2_DESCRIPTOR__ = (source)

Alias for code that expects a protobuf service descriptor.

Value
_REGISTRY.service_descriptor('nebius.billing.v1.PricingPolicyService')
__api_service_name__: str = (source)

API gateway name for service routes.

__operation_source_method__: str = (source)

RPC method that supplies the operation route.

__operation_type__ = (source)

Message type representing a long-running operation.

__service_name__: str = (source)

Fully qualified protobuf service name for RPC routes.