@nebius/js-sdk - v0.2.78
    Preparing search index...

    Interface PricingPolicyServiceBaseClient

    Defines the low-level gRPC client for the nebius.billing.v1.PricingPolicyService service.

    interface PricingPolicyServiceBaseClient {
        create(
            request: CreatePricingPolicyRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (error: ServiceError | null, response: Operation) => void,
        ): SurfaceCall;
        delete(
            request: DeletePricingPolicyRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (error: ServiceError | null, response: Operation) => void,
        ): SurfaceCall;
        get(
            request: GetPricingPolicyRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (error: ServiceError | null, response: PricingPolicy) => void,
        ): SurfaceCall;
        getByName(
            request: GetByNameRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (error: ServiceError | null, response: PricingPolicy) => void,
        ): SurfaceCall;
        list(
            request: ListPricingPoliciesRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (
                error: ServiceError | null,
                response: ListPricingPoliciesResponse,
            ) => void,
        ): SurfaceCall;
        update(
            request: UpdatePricingPolicyRequest,
            metadata: Metadata,
            options: Partial<CallOptions>,
            callback: (error: ServiceError | null, response: Operation) => void,
        ): SurfaceCall;
    }

    Hierarchy

    • Client
      • PricingPolicyServiceBaseClient
    Index
    • Creates a pricing policy. A max_price 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.

      Parameters

      • request: CreatePricingPolicyRequest
      • metadata: Metadata
      • options: Partial<CallOptions>
      • callback: (error: ServiceError | null, response: Operation) => void
          • (error: ServiceError | null, response: Operation): void
          • Creates a pricing policy. A max_price 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.

            Parameters

            • error: ServiceError | null
            • response: Operation

            Returns void

      Returns SurfaceCall

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

      Parameters

      • request: DeletePricingPolicyRequest
      • metadata: Metadata
      • options: Partial<CallOptions>
      • callback: (error: ServiceError | null, response: Operation) => void
          • (error: ServiceError | null, response: Operation): void
          • Deletes a pricing policy. Requires that no VM runs under the policy and nothing is being preempted (FAILED_PRECONDITION otherwise).

            Parameters

            • error: ServiceError | null
            • response: Operation

            Returns void

      Returns SurfaceCall

    • Calls the Get RPC.

      Parameters

      Returns SurfaceCall

    • Calls the GetByName RPC.

      Parameters

      • request: GetByNameRequest
      • metadata: Metadata
      • options: Partial<CallOptions>
      • callback: (error: ServiceError | null, response: PricingPolicy) => void
          • (error: ServiceError | null, response: PricingPolicy): void
          • Calls the GetByName RPC.

            Parameters

            Returns void

      Returns SurfaceCall

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

      Parameters

      • request: UpdatePricingPolicyRequest
      • metadata: Metadata
      • options: Partial<CallOptions>
      • callback: (error: ServiceError | null, response: Operation) => void
          • (error: ServiceError | null, response: Operation): void
          • Updates a pricing policy. metadata.name may change any time; the max_price in spec.pricing.max_price_v1 only while status.running_vm_count is 0 (FAILED_PRECONDITION otherwise). Other spec fields are immutable (INVALID_ARGUMENT).

            Parameters

            • error: ServiceError | null
            • response: Operation

            Returns void

      Returns SurfaceCall