import { Long, unknownFieldsSymbol } from "../../../../runtime/protos/index.js"; import type { Dayjs, MessageDescriptor, MessageFns, EnumInstance, EnumClass } from "../../../../runtime/protos/index.js"; import { customJson } from "../../../../runtime/util/logging.js"; import { ChannelCredentials, Client, ClientUnaryCall, ClientOptions, CallOptions, Metadata, ServiceError as GrpcServiceError, handleUnaryCall, UntypedServiceImplementation } from "@grpc/grpc-js"; import type { SDKInterface } from "../../../../sdk.js"; import { Request as SDKRequestClass, type RetryOptions } from "../../../../runtime/request.js"; import { Operation as OperationWrapper } from "../../../../runtime/operation.js"; import { GetOperationRequest, Operation, OperationService, ResourceMetadata } from "../../common/v1/index.js"; /** Represents the `nebius.capacity.v1.ListCapacityAllowancesRequest` protobuf message. */ export interface ListCapacityAllowancesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityAllowancesRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the Project to list capacity allowances for. * */ parentId: string; /** * Page size. Must be between [1...1000]. * Optional; if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Pass an empty string to start listing from the first page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityAllowancesRequest} messages. */ export declare const ListCapacityAllowancesRequest: MessageFns; /** Represents the `nebius.capacity.v1.ListCapacityAllowancesResponse` protobuf message. */ export interface ListCapacityAllowancesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityAllowancesResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of Capacity Allowances on this result page. * */ items: CapacityAllowance[]; /** * Listing continuation token for the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityAllowancesResponse} messages. */ export declare const ListCapacityAllowancesResponse: MessageFns; /** Represents the `nebius.capacity.v1.ListCapacityAllowancesByCapacityBlockGroupRequest` protobuf message. */ export interface ListCapacityAllowancesByCapacityBlockGroupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityAllowancesByCapacityBlockGroupRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of a Capacity Block Group to list capacity allowances for. * */ capacityBlockGroupId: string; /** * Page size. Must be between [1...1000]. * Optional; if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Pass an empty string to start listing from the first page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityAllowancesByCapacityBlockGroupRequest} messages. */ export declare const ListCapacityAllowancesByCapacityBlockGroupRequest: MessageFns; /** Represents the `nebius.capacity.v1.GetCapacityAllowanceRequest` protobuf message. */ export interface GetCapacityAllowanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.GetCapacityAllowanceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the Capacity Allowance. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetCapacityAllowanceRequest} messages. */ export declare const GetCapacityAllowanceRequest: MessageFns; /** Represents the `nebius.capacity.v1.GetCapacityAllowanceByParentAndCapacityBlockGroupRequest` protobuf message. */ export interface GetCapacityAllowanceByParentAndCapacityBlockGroupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.GetCapacityAllowanceByParentAndCapacityBlockGroupRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the Project to get capacity allowance for. * */ parentId: string; /** * ID of a Capacity Block Group to get capacity allowance for. * */ capacityBlockGroupId: string; } /** Encodes, decodes, converts, and creates {@link GetCapacityAllowanceByParentAndCapacityBlockGroupRequest} messages. */ export declare const GetCapacityAllowanceByParentAndCapacityBlockGroupRequest: MessageFns; /** Represents the `nebius.capacity.v1.CreateCapacityAllowanceRequest` protobuf message. */ export interface CreateCapacityAllowanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CreateCapacityAllowanceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: CapacityAllowanceSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateCapacityAllowanceRequest} messages. */ export declare const CreateCapacityAllowanceRequest: MessageFns; /** Represents the `nebius.capacity.v1.UpdateCapacityAllowanceRequest` protobuf message. */ export interface UpdateCapacityAllowanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.UpdateCapacityAllowanceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: CapacityAllowanceSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateCapacityAllowanceRequest} messages. */ export declare const UpdateCapacityAllowanceRequest: MessageFns; /** Represents the `nebius.capacity.v1.DeleteCapacityAllowanceRequest` protobuf message. */ export interface DeleteCapacityAllowanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.DeleteCapacityAllowanceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the Capacity Allowance. * */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteCapacityAllowanceRequest} messages. */ export declare const DeleteCapacityAllowanceRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.capacity.v1.CapacityAllowanceService` service. */ export type CapacityAllowanceServiceServiceDescription = typeof CapacityAllowanceServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.capacity.v1.CapacityAllowanceService` service. */ export declare const CapacityAllowanceServiceServiceDescription: { readonly list: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCapacityAllowancesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListCapacityAllowancesRequest; readonly responseSerialize: (value: ListCapacityAllowancesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCapacityAllowancesResponse; }; readonly listByCapacityBlockGroup: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/ListByCapacityBlockGroup"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCapacityAllowancesByCapacityBlockGroupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListCapacityAllowancesByCapacityBlockGroupRequest; readonly responseSerialize: (value: ListCapacityAllowancesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCapacityAllowancesResponse; }; readonly get: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCapacityAllowanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetCapacityAllowanceRequest; readonly responseSerialize: (value: CapacityAllowance) => Buffer; readonly responseDeserialize: (value: Buffer) => CapacityAllowance; }; readonly getByParentAndCapacityBlockGroup: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/GetByParentAndCapacityBlockGroup"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetCapacityAllowanceByParentAndCapacityBlockGroupRequest; readonly responseSerialize: (value: CapacityAllowance) => Buffer; readonly responseDeserialize: (value: Buffer) => CapacityAllowance; }; readonly create: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateCapacityAllowanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateCapacityAllowanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateCapacityAllowanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateCapacityAllowanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.capacity.v1.CapacityAllowanceService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteCapacityAllowanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteCapacityAllowanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.capacity.v1.CapacityAllowanceService` service. */ export interface CapacityAllowanceServiceServer extends UntypedServiceImplementation { /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list: handleUnaryCall; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup: handleUnaryCall; /** * Gets a Capacity Allowance by its ID. * */ get: handleUnaryCall; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup: handleUnaryCall; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create: handleUnaryCall; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update: handleUnaryCall; /** * Resets Capacity Allowance limit to the default value. * */ delete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.capacity.v1.CapacityAllowanceService` service. */ export interface CapacityAllowanceServiceBaseClient extends Client { /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListCapacityAllowancesResponse) => void): ClientUnaryCall; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListCapacityAllowancesResponse) => void): ClientUnaryCall; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: CapacityAllowance) => void): ClientUnaryCall; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: CapacityAllowance) => void): ClientUnaryCall; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.capacity.v1.CapacityAllowanceService` service. */ export declare const CapacityAllowanceServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): CapacityAllowanceServiceBaseClient; /** Contains the gRPC service description. */ service: typeof CapacityAllowanceServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Capacity Allowance service manages project limits for Capacity Block Groups. * */ export interface CapacityAllowanceService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.capacity.v1.CapacityAllowanceService"; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest): SDKRequestClass; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest, metadata: Metadata): SDKRequestClass; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest): SDKRequestClass>; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.capacity.v1.CapacityAllowanceService` service through the Nebius SDK. */ export declare class CapacityAllowanceService implements CapacityAllowanceService { private sdk; $type: "nebius.capacity.v1.CapacityAllowanceService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** Returns the operation service for this service address. */ getOperationService(): OperationService; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest): SDKRequestClass; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest, metadata: Metadata): SDKRequestClass; /** * Lists project limits. * Lists non-created Capacity Allowances as well for clarity, showing the default limit. * */ list(request: ListCapacityAllowancesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Lists project limits for a Capacity Block Group. * */ listByCapacityBlockGroup(request: ListCapacityAllowancesByCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass; /** * Gets a Capacity Allowance by its ID. * */ get(request: GetCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Gets a Capacity Allowance by a project and a Capacity Block Group NID. * Returns non-created Capacity Allowances as well for clarity, showing the default limit. * */ getByParentAndCapacityBlockGroup(request: GetCapacityAllowanceByParentAndCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest): SDKRequestClass>; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a Capacity Allowance by project ID and Capacity Block Group NID. * */ create(request: CreateCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Updates a Capacity Allowance by project ID and Capacity Block Group NID. * */ update(request: UpdateCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest, metadata: Metadata): SDKRequestClass>; /** * Resets Capacity Allowance limit to the default value. * */ delete(request: DeleteCapacityAllowanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.capacity.v1.CapacityAllowanceStatus.State` protobuf enum. */ export type CapacityAllowanceStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED">; /** Defines the static values of {@link CapacityAllowanceStatus_State}. */ export interface CapacityAllowanceStatus_StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED">; /** * Capacity Allowance is being allocated; the process can take up to several minutes. * */ readonly STATE_PROVISIONING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED">; /** * Capacity Allowance is allocated and can be used. * */ readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED">; /** * The container of the Capacity Allowance is deleted. Capacity Allowance cannot be changed. * */ readonly STATE_CONTAINER_DELETED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED">; } /** Defines the runtime API for {@link CapacityAllowanceStatus_State}. */ export type CapacityAllowanceStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_PROVISIONING" | "STATE_ACTIVE" | "STATE_CONTAINER_DELETED"> & CapacityAllowanceStatus_StateValueMembers; /** Converts and creates {@link CapacityAllowanceStatus_State} values. */ export declare const CapacityAllowanceStatus_State: CapacityAllowanceStatus_StateClass; /** * Represents the `nebius.capacity.v1.CapacityAllowanceStatus.UsageState` protobuf enum. */ export type CapacityAllowanceStatus_UsageState = EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** Defines the static values of {@link CapacityAllowanceStatus_UsageState}. */ export interface CapacityAllowanceStatus_UsageStateValueMembers { /** * Represents the `USAGE_STATE_UNSPECIFIED` protobuf enum value. */ readonly USAGE_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity allowance is actively in use. * */ readonly USAGE_STATE_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity allowance is not currently in use. * */ readonly USAGE_STATE_NOT_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity allowance region is unreachable, the current usage is therefore unknown. * Please, retry the request later. * */ readonly USAGE_STATE_UNKNOWN: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; } /** Defines the runtime API for {@link CapacityAllowanceStatus_UsageState}. */ export type CapacityAllowanceStatus_UsageStateClass = EnumClass<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN"> & CapacityAllowanceStatus_UsageStateValueMembers; /** Converts and creates {@link CapacityAllowanceStatus_UsageState} values. */ export declare const CapacityAllowanceStatus_UsageState: CapacityAllowanceStatus_UsageStateClass; /** * Resource that restricts Capacity Block Group quota by project. * */ export interface CapacityAllowance { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityAllowance"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Standard metadata. parent_id is the User's Project NID. * */ metadata?: ResourceMetadata | undefined; /** * Identifiers for the limit and technical configuration. * */ spec?: CapacityAllowanceSpec | undefined; /** * Current status of the Capacity Allowance. * */ status?: CapacityAllowanceStatus | undefined; } /** Encodes, decodes, converts, and creates {@link CapacityAllowance} messages. */ export declare const CapacityAllowance: MessageFns; /** * Capacity Allowance specification. * */ export interface CapacityAllowanceSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityAllowanceSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Capacity Block Group NID. * */ capacityBlockGroupId: string; /** * Total amount of resources allocated. * Optional is used to define an unlimited Capacity Allowance. * */ limit?: Long | undefined; } /** Encodes, decodes, converts, and creates {@link CapacityAllowanceSpec} messages. */ export declare const CapacityAllowanceSpec: MessageFns; /** * Capacity Allowance status. * */ export interface CapacityAllowanceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityAllowanceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Current state of the capacity allowance. * */ state: CapacityAllowanceStatus_State; /** * Current capacity allowance usage. * */ usage: Long; /** * Capacity allowance usage percentage. * */ usagePercentage: string; /** * Current state of the capacity allowance usage. * */ usageState: CapacityAllowanceStatus_UsageState; /** * Capacity Allowance unit. * Example: "GPU". * */ unit: string; /** * Shows that changes are in flight. * */ reconciling: boolean; } /** Encodes, decodes, converts, and creates {@link CapacityAllowanceStatus} messages. */ export declare const CapacityAllowanceStatus: MessageFns; /** * Get a Capacity Block Group by its ID. * */ export interface GetCapacityBlockGroupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.GetCapacityBlockGroupRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of the Capacity Block Group. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetCapacityBlockGroupRequest} messages. */ export declare const GetCapacityBlockGroupRequest: MessageFns; /** * Get a Capacity Block Group in a Tenant by its Resource Affinity. * */ export interface GetCapacityBlockGroupByResourceAffinityRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.GetCapacityBlockGroupByResourceAffinityRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Tenant ID of the Capacity Block Group. * */ parentId: string; /** * Name of the region where the Capacity Block Group is allocated. * Example: "eu-north1". * */ region: string; /** * Specifications of the Capacity Block Group. * */ resourceAffinity?: ResourceAffinity | undefined; } /** Encodes, decodes, converts, and creates {@link GetCapacityBlockGroupByResourceAffinityRequest} messages. */ export declare const GetCapacityBlockGroupByResourceAffinityRequest: MessageFns; /** * List Capacity Block Groups by a Tenant ID. * */ export interface ListCapacityBlockGroupsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityBlockGroupsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Tenant ID of the Capacity Block Group. * */ parentId: string; /** * Page size. Must be between [1...200]. * Optional; if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Pass an empty string to start listing from the first page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityBlockGroupsRequest} messages. */ export declare const ListCapacityBlockGroupsRequest: MessageFns; /** * All existing Capacity Block Groups in a Tenant. * */ export interface ListCapacityBlockGroupsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityBlockGroupsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of Capacity Block Groups on this result page. * */ items: CapacityBlockGroup[]; /** * Listing continuation token for the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityBlockGroupsResponse} messages. */ export declare const ListCapacityBlockGroupsResponse: MessageFns; /** * List reservations instances in a Capacity Block Group by its ID. * */ export interface ListCapacityBlockGroupResourcesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityBlockGroupResourcesRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of a Capacity Block Group. * */ id: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityBlockGroupResourcesRequest} messages. */ export declare const ListCapacityBlockGroupResourcesRequest: MessageFns; /** * All VM instances' IDs that occupy the Capacity Block Group. * */ export interface ListCapacityBlockGroupResourcesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityBlockGroupResourcesResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of instances' IDs. * */ resourceIds: string[]; } /** Encodes, decodes, converts, and creates {@link ListCapacityBlockGroupResourcesResponse} messages. */ export declare const ListCapacityBlockGroupResourcesResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.capacity.v1.CapacityBlockGroupService` service. */ export type CapacityBlockGroupServiceServiceDescription = typeof CapacityBlockGroupServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.capacity.v1.CapacityBlockGroupService` service. */ export declare const CapacityBlockGroupServiceServiceDescription: { readonly get: { readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCapacityBlockGroupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetCapacityBlockGroupRequest; readonly responseSerialize: (value: CapacityBlockGroup) => Buffer; readonly responseDeserialize: (value: Buffer) => CapacityBlockGroup; }; readonly getByResourceAffinity: { readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/GetByResourceAffinity"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCapacityBlockGroupByResourceAffinityRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetCapacityBlockGroupByResourceAffinityRequest; readonly responseSerialize: (value: CapacityBlockGroup) => Buffer; readonly responseDeserialize: (value: Buffer) => CapacityBlockGroup; }; readonly list: { readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCapacityBlockGroupsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListCapacityBlockGroupsRequest; readonly responseSerialize: (value: ListCapacityBlockGroupsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCapacityBlockGroupsResponse; }; readonly listResources: { readonly path: "/nebius.capacity.v1.CapacityBlockGroupService/ListResources"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCapacityBlockGroupResourcesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListCapacityBlockGroupResourcesRequest; readonly responseSerialize: (value: ListCapacityBlockGroupResourcesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCapacityBlockGroupResourcesResponse; }; }; /** * Handles server calls for the `nebius.capacity.v1.CapacityBlockGroupService` service. */ export interface CapacityBlockGroupServiceServer extends UntypedServiceImplementation { /** * Get Capacity Block Group by its ID. * */ get: handleUnaryCall; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity: handleUnaryCall; /** * List all Capacity Block Groups for the specified Tenant. * */ list: handleUnaryCall; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.capacity.v1.CapacityBlockGroupService` service. */ export interface CapacityBlockGroupServiceBaseClient extends Client { /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: CapacityBlockGroup) => void): ClientUnaryCall; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: CapacityBlockGroup) => void): ClientUnaryCall; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListCapacityBlockGroupsResponse) => void): ClientUnaryCall; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListCapacityBlockGroupResourcesResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.capacity.v1.CapacityBlockGroupService` service. */ export declare const CapacityBlockGroupServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): CapacityBlockGroupServiceBaseClient; /** Contains the gRPC service description. */ service: typeof CapacityBlockGroupServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Capacity Block Group service provides read access to Capacity Block Groups resources. * */ export interface CapacityBlockGroupService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.capacity.v1.CapacityBlockGroupService"; /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest): SDKRequestClass; /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest, metadata: Metadata): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest, metadata: Metadata): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.capacity.v1.CapacityBlockGroupService` service through the Nebius SDK. */ export declare class CapacityBlockGroupService implements CapacityBlockGroupService { private sdk; $type: "nebius.capacity.v1.CapacityBlockGroupService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest): SDKRequestClass; /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Block Group by its ID. * */ get(request: GetCapacityBlockGroupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Block Group by its specification. * */ getByResourceAffinity(request: GetCapacityBlockGroupByResourceAffinityRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest, metadata: Metadata): SDKRequestClass; /** * List all Capacity Block Groups for the specified Tenant. * */ list(request: ListCapacityBlockGroupsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest, metadata: Metadata): SDKRequestClass; /** * List virtual machines instances' IDs that occupy a Capacity Block Group by its ID. * */ listResources(request: ListCapacityBlockGroupResourcesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Shows a state of a Continuous Interval. * */ export type CurrentContinuousInterval_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** Defines the static values of {@link CurrentContinuousInterval_State}. */ export interface CurrentContinuousInterval_StateValueMembers { /** * Shouldn't happen. * */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Continuous Interval is in the future. * */ readonly STATE_SCHEDULED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Continuous Interval is active. * */ readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Continuous Interval is in the past. * */ readonly STATE_EXPIRED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; } /** Defines the runtime API for {@link CurrentContinuousInterval_State}. */ export type CurrentContinuousInterval_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED"> & CurrentContinuousInterval_StateValueMembers; /** Converts and creates {@link CurrentContinuousInterval_State} values. */ export declare const CurrentContinuousInterval_State: CurrentContinuousInterval_StateClass; /** * Shows the state of a Capacity Block Group with respect to its quota. * */ export type CapacityBlockGroupStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; /** Defines the static values of {@link CapacityBlockGroupStatus_State}. */ export interface CapacityBlockGroupStatus_StateValueMembers { /** * Shouldn't happen. * */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; /** * Capacity Block Group quota is being allocated as one or more capacity intervals have started. * */ readonly STATE_ALLOCATING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; /** * Capacity Block Group quota is already allocated and active as one or more capacity intervals are active. * */ readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; /** * Capacity Block Group is being shut down due to absence of active intervals at the time. * */ readonly STATE_SHUTTING: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; /** * Capacity Block Group is inactive due to absence of active intervals at the time. * */ readonly STATE_INACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE">; } /** Defines the runtime API for {@link CapacityBlockGroupStatus_State}. */ export type CapacityBlockGroupStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_ALLOCATING" | "STATE_ACTIVE" | "STATE_SHUTTING" | "STATE_INACTIVE"> & CapacityBlockGroupStatus_StateValueMembers; /** Converts and creates {@link CapacityBlockGroupStatus_State} values. */ export declare const CapacityBlockGroupStatus_State: CapacityBlockGroupStatus_StateClass; /** * Shows the usage state if a Capacity Block Group quota. * */ export type CapacityBlockGroupStatus_UsageState = EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** Defines the static values of {@link CapacityBlockGroupStatus_UsageState}. */ export interface CapacityBlockGroupStatus_UsageStateValueMembers { /** * Shouldn't happen. * */ readonly USAGE_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity Block Group quota is actively in use. * */ readonly USAGE_STATE_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity Block Group quota is not currently in use. * */ readonly USAGE_STATE_NOT_USED: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; /** * Capacity Block Group region is unreachable, the current usage is therefore unknown. * Please, retry the request later. * */ readonly USAGE_STATE_UNKNOWN: EnumInstance<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN">; } /** Defines the runtime API for {@link CapacityBlockGroupStatus_UsageState}. */ export type CapacityBlockGroupStatus_UsageStateClass = EnumClass<"UNRECOGNIZED" | "USAGE_STATE_UNSPECIFIED" | "USAGE_STATE_USED" | "USAGE_STATE_NOT_USED" | "USAGE_STATE_UNKNOWN"> & CapacityBlockGroupStatus_UsageStateValueMembers; /** Converts and creates {@link CapacityBlockGroupStatus_UsageState} values. */ export declare const CapacityBlockGroupStatus_UsageState: CapacityBlockGroupStatus_UsageStateClass; /** * Capacity Block Group specification. * */ export interface CapacityBlockGroupSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityBlockGroupSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link CapacityBlockGroupSpec} messages. */ export declare const CapacityBlockGroupSpec: MessageFns; /** * Current, last or future concatenation of Capacity Intervals in a Capacity Block Group. * */ export interface CurrentContinuousInterval { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CurrentContinuousInterval"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Start time of the first interval(s) in Continuous Interval. * */ startTime?: Dayjs | undefined; /** * End time of the last interval(s) in Continuous Interval. * */ endTime?: Dayjs | undefined; /** * Quota quantity that is currently set, was set or will be set in the Continuous Interval depending on it's * start_time and end_time. * If the Continuous Interval is currently active, quantity is the sum of quantities of the currently active * non-zero intervals. * If the Continuous Interval is in the past, quantity is the sum of quantities of the last non-zero active * intervals. * If the Continuous Interval is in the future, quantity is the sum of the quantities of the first scheduled * non-zero active intervals. * */ quantity: Long; /** * Continuous Interval state. * */ state: CurrentContinuousInterval_State; } /** Encodes, decodes, converts, and creates {@link CurrentContinuousInterval} messages. */ export declare const CurrentContinuousInterval: MessageFns; /** * Capacity Block Group status. * */ export interface CapacityBlockGroupStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityBlockGroupStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Name of the region where the Capacity Block Group is allocated. * Example: "eu-north1". * */ region: string; /** * Specification of the Capacity Block Group. * */ resourceAffinity?: ResourceAffinity | undefined; /** * Service for which the Capacity Block Group is allocated. * Derived from the resource_affinity variant (compute_v1 -> "compute", tokenfactory_v1 -> "tokenfactory"). * */ service: string; /** * Capacity Block Group state with respect to quota allocation. * */ state: CapacityBlockGroupStatus_State; /** * Capacity Block Group current quota limit. * */ currentLimit: Long; /** * Capacity Block Group quota usage. * */ usage: Long; /** * Capacity Block Group quota usage percentage. * */ usagePercentage: string; /** * Time of the next Capacity Block Group quota change. * */ nextChangeAt?: Dayjs | undefined; /** * The next expected change of the Capacity Block Group quota limit. * the quota limit change that is currently performed. * */ nextChangeTo?: Long | undefined; /** * Current concatenation of non-zero Capacity Intervals that overlap or follow each other without a break. * If all Capacity Intervals are in the past, returns the last Continuous Interval. * If all Capacity Intervals are in the future, returns the first Continuous Interval scheduled. * */ currentContinuousInterval?: CurrentContinuousInterval | undefined; /** * Capacity Block Group quota usage state. * */ usageState: CapacityBlockGroupStatus_UsageState; /** * Shows that changes are in flight. * */ reconciling: boolean; } /** Encodes, decodes, converts, and creates {@link CapacityBlockGroupStatus} messages. */ export declare const CapacityBlockGroupStatus: MessageFns; /** * Capacity Block Group is a parent resource for Capacity Intervals. * */ export interface CapacityBlockGroup { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityBlockGroup"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: CapacityBlockGroupSpec | undefined; /** Contains the `status` protobuf field. */ status?: CapacityBlockGroupStatus | undefined; } /** Encodes, decodes, converts, and creates {@link CapacityBlockGroup} messages. */ export declare const CapacityBlockGroup: MessageFns; /** * Getting Capacity Interval by its ID. * */ export interface GetCapacityIntervalRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.GetCapacityIntervalRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `id` protobuf field. */ id: string; } /** Encodes, decodes, converts, and creates {@link GetCapacityIntervalRequest} messages. */ export declare const GetCapacityIntervalRequest: MessageFns; /** * Listing all existing Capacity Intervals in a Capacity Block Group. * */ export interface ListCapacityIntervalsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityIntervalsRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Capacity Block Group ID for which the Capacity Intervals should be listed. * */ parentId: string; /** * Page size. Must be between [1...200]. * Optional; if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Pass an empty string to start listing from the first page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityIntervalsRequest} messages. */ export declare const ListCapacityIntervalsRequest: MessageFns; /** * All existing Capacity Intervals in a Capacity Block Group. * */ export interface ListCapacityIntervalsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListCapacityIntervalsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of Capacity Intervals on this result page. * */ items: CapacityInterval[]; /** * Listing continuation token for the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListCapacityIntervalsResponse} messages. */ export declare const ListCapacityIntervalsResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.capacity.v1.CapacityIntervalService` service. */ export type CapacityIntervalServiceServiceDescription = typeof CapacityIntervalServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.capacity.v1.CapacityIntervalService` service. */ export declare const CapacityIntervalServiceServiceDescription: { readonly get: { readonly path: "/nebius.capacity.v1.CapacityIntervalService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetCapacityIntervalRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetCapacityIntervalRequest; readonly responseSerialize: (value: CapacityInterval) => Buffer; readonly responseDeserialize: (value: Buffer) => CapacityInterval; }; readonly list: { readonly path: "/nebius.capacity.v1.CapacityIntervalService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListCapacityIntervalsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListCapacityIntervalsRequest; readonly responseSerialize: (value: ListCapacityIntervalsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListCapacityIntervalsResponse; }; }; /** * Handles server calls for the `nebius.capacity.v1.CapacityIntervalService` service. */ export interface CapacityIntervalServiceServer extends UntypedServiceImplementation { /** * Get Capacity Interval by its ID. * */ get: handleUnaryCall; /** * List all capacity intervals in a Capacity Block Group. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.capacity.v1.CapacityIntervalService` service. */ export interface CapacityIntervalServiceBaseClient extends Client { /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: CapacityInterval) => void): ClientUnaryCall; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListCapacityIntervalsResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.capacity.v1.CapacityIntervalService` service. */ export declare const CapacityIntervalServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): CapacityIntervalServiceBaseClient; /** Contains the gRPC service description. */ service: typeof CapacityIntervalServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Capacity Interval service provides read access to Capacity Intervals resources. * */ export interface CapacityIntervalService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.capacity.v1.CapacityIntervalService"; /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest): SDKRequestClass; /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest, metadata: Metadata): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.capacity.v1.CapacityIntervalService` service through the Nebius SDK. */ export declare class CapacityIntervalService implements CapacityIntervalService { private sdk; $type: "nebius.capacity.v1.CapacityIntervalService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest): SDKRequestClass; /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest, metadata: Metadata): SDKRequestClass; /** * Get Capacity Interval by its ID. * */ get(request: GetCapacityIntervalRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest, metadata: Metadata): SDKRequestClass; /** * List all capacity intervals in a Capacity Block Group. * */ list(request: ListCapacityIntervalsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the `nebius.capacity.v1.CapacityIntervalStatus.State` protobuf enum. */ export type CapacityIntervalStatus_State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** Defines the static values of {@link CapacityIntervalStatus_State}. */ export interface CapacityIntervalStatus_StateValueMembers { /** * Shouldn't happen. * */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Capacity Interval is fully in the future (now < start_time). * */ readonly STATE_SCHEDULED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Capacity Interval is currently active (start_time <= now < end_time). * */ readonly STATE_ACTIVE: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; /** * Capacity Interval is fully in the past (end_time <= now). * */ readonly STATE_EXPIRED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED">; } /** Defines the runtime API for {@link CapacityIntervalStatus_State}. */ export type CapacityIntervalStatus_StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_ACTIVE" | "STATE_EXPIRED"> & CapacityIntervalStatus_StateValueMembers; /** Converts and creates {@link CapacityIntervalStatus_State} values. */ export declare const CapacityIntervalStatus_State: CapacityIntervalStatus_StateClass; /** * Capacity Interval specification. * */ export interface CapacityIntervalSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityIntervalSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; } /** Encodes, decodes, converts, and creates {@link CapacityIntervalSpec} messages. */ export declare const CapacityIntervalSpec: MessageFns; /** * Capacity Interval status data. * */ export interface CapacityIntervalStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityIntervalStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Tenant ID for which the Capacity Interval is created. * */ containerId: string; /** * Name of the region where the Capacity Interval is created. * Example: "eu-north1". * */ region: string; /** * Specification of the Capacity Interval. * */ resourceAffinity?: ResourceAffinity | undefined; /** * Service for which the Capacity Interval is created. * */ service: string; /** * Resource quantity of the Capacity Interval. * */ quantity: Long; /** * Start time of the Capacity Interval. * */ startTime?: Dayjs | undefined; /** * End time of the Capacity Interval. * */ endTime?: Dayjs | undefined; /** * State of the Capacity Interval. * */ state: CapacityIntervalStatus_State; /** * Shows that changes are in flight. * */ reconciling: boolean; } /** Encodes, decodes, converts, and creates {@link CapacityIntervalStatus} messages. */ export declare const CapacityIntervalStatus: MessageFns; /** * Capacity Intervals represents a timeframe during which the specified resources can be used. * */ export interface CapacityInterval { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.CapacityInterval"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `metadata` protobuf field. */ metadata?: ResourceMetadata | undefined; /** Contains the `spec` protobuf field. */ spec?: CapacityIntervalSpec | undefined; /** Contains the `status` protobuf field. */ status?: CapacityIntervalStatus | undefined; } /** Encodes, decodes, converts, and creates {@link CapacityInterval} messages. */ export declare const CapacityInterval: MessageFns; /** Represents the `nebius.capacity.v1.ListResourceAdviceRequest` protobuf message. */ export interface ListResourceAdviceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListResourceAdviceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Tenant NID. * Required to calculate 'available' numbers clipped by user quotas. * */ parentId: string; /** * Maximum number of items to return. * */ pageSize: Long; /** * Page token for pagination. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListResourceAdviceRequest} messages. */ export declare const ListResourceAdviceRequest: MessageFns; /** Represents the `nebius.capacity.v1.ListResourceAdviceResponse` protobuf message. */ export interface ListResourceAdviceResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ListResourceAdviceResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of resource advice items matching the request. * Each item represents a unique combination of Resource Type + Tier/Preset. * */ items: ResourceAdvice[]; /** * Token for retrieving the next page of results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListResourceAdviceResponse} messages. */ export declare const ListResourceAdviceResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.capacity.v1.ResourceAdviceService` service. */ export type ResourceAdviceServiceServiceDescription = typeof ResourceAdviceServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.capacity.v1.ResourceAdviceService` service. */ export declare const ResourceAdviceServiceServiceDescription: { readonly list: { readonly path: "/nebius.capacity.v1.ResourceAdviceService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListResourceAdviceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListResourceAdviceRequest; readonly responseSerialize: (value: ListResourceAdviceResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListResourceAdviceResponse; }; }; /** * Handles server calls for the `nebius.capacity.v1.ResourceAdviceService` service. */ export interface ResourceAdviceServiceServer extends UntypedServiceImplementation { /** * 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. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.capacity.v1.ResourceAdviceService` service. */ export interface ResourceAdviceServiceBaseClient extends Client { /** * 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. * */ list(request: ListResourceAdviceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListResourceAdviceResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.capacity.v1.ResourceAdviceService` service. */ export declare const ResourceAdviceServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): ResourceAdviceServiceBaseClient; /** Contains the gRPC service description. */ service: typeof ResourceAdviceServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * 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. * */ export interface ResourceAdviceService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.capacity.v1.ResourceAdviceService"; /** * 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. * */ list(request: ListResourceAdviceRequest): SDKRequestClass; /** * 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. * */ list(request: ListResourceAdviceRequest, metadata: Metadata): SDKRequestClass; /** * 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. * */ list(request: ListResourceAdviceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.capacity.v1.ResourceAdviceService` service through the Nebius SDK. */ export declare class ResourceAdviceService implements ResourceAdviceService { private sdk; $type: "nebius.capacity.v1.ResourceAdviceService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * 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. * */ list(request: ListResourceAdviceRequest): SDKRequestClass; /** * 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. * */ list(request: ListResourceAdviceRequest, metadata: Metadata): SDKRequestClass; /** * 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. * */ list(request: ListResourceAdviceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Shows if data could be trusted. * */ export type ResourceAdviceStatus_Availability_DataState = EnumInstance<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN">; /** Defines the static values of {@link ResourceAdviceStatus_Availability_DataState}. */ export interface ResourceAdviceStatus_Availability_DataStateValueMembers { /** * Shouldn't ever happen. * */ readonly DATA_STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN">; /** * Data is relevant and reflects current state of the system. * */ readonly DATA_STATE_FRESH: EnumInstance<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN">; /** * Data is not relevant anymore as it was fetched long time ago. * */ readonly DATA_STATE_STALE: EnumInstance<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN">; /** * Failed to retrieve data. * */ readonly DATA_STATE_UNKNOWN: EnumInstance<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN">; } /** Defines the runtime API for {@link ResourceAdviceStatus_Availability_DataState}. */ export type ResourceAdviceStatus_Availability_DataStateClass = EnumClass<"UNRECOGNIZED" | "DATA_STATE_UNSPECIFIED" | "DATA_STATE_FRESH" | "DATA_STATE_STALE" | "DATA_STATE_UNKNOWN"> & ResourceAdviceStatus_Availability_DataStateValueMembers; /** Converts and creates {@link ResourceAdviceStatus_Availability_DataState} values. */ export declare const ResourceAdviceStatus_Availability_DataState: ResourceAdviceStatus_Availability_DataStateClass; /** * Indicates the likelihood of a successful allocation. * */ export type ResourceAdviceStatus_Availability_AvailabilityLevel = EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** Defines the static values of {@link ResourceAdviceStatus_Availability_AvailabilityLevel}. */ export interface ResourceAdviceStatus_Availability_AvailabilityLevelValueMembers { /** * Shouldn't ever happen. * */ readonly AVAILABILITY_LEVEL_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** * Plenty of room for large requests. * */ readonly AVAILABILITY_LEVEL_HIGH: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** * Room for medium requests. * */ readonly AVAILABILITY_LEVEL_MEDIUM: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** * High risk of Not Enough Resources (NER). * */ readonly AVAILABILITY_LEVEL_LOW: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** * Not enough quota or capacity block on the customer's side. * */ readonly AVAILABILITY_LEVEL_LIMIT_REACHED: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; /** * Failed to retrieve data. * */ readonly AVAILABILITY_LEVEL_UNKNOWN: EnumInstance<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN">; } /** Defines the runtime API for {@link ResourceAdviceStatus_Availability_AvailabilityLevel}. */ export type ResourceAdviceStatus_Availability_AvailabilityLevelClass = EnumClass<"UNRECOGNIZED" | "AVAILABILITY_LEVEL_UNSPECIFIED" | "AVAILABILITY_LEVEL_HIGH" | "AVAILABILITY_LEVEL_MEDIUM" | "AVAILABILITY_LEVEL_LOW" | "AVAILABILITY_LEVEL_LIMIT_REACHED" | "AVAILABILITY_LEVEL_UNKNOWN"> & ResourceAdviceStatus_Availability_AvailabilityLevelValueMembers; /** Converts and creates {@link ResourceAdviceStatus_Availability_AvailabilityLevel} values. */ export declare const ResourceAdviceStatus_Availability_AvailabilityLevel: ResourceAdviceStatus_Availability_AvailabilityLevelClass; /** * ResourceAdvice is a virtual resource representing the availability * of a specific technical configuration in a specific scope. * */ export interface ResourceAdvice { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAdvice"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Standard metadata. parent_id is the User's Tenant NID. * */ metadata?: ResourceMetadata | undefined; /** * Identifiers for the capacity scope and technical configuration. * */ spec?: ResourceAdviceSpec | undefined; /** * The current state of availability, including quotas and data freshness. * */ status?: ResourceAdviceStatus | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceAdvice} messages. */ export declare const ResourceAdvice: MessageFns; /** * Resource Advice specification. * */ export interface ResourceAdviceSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAdviceSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Geographical region identifier. * */ region: string; /** * Data center fabric or cluster identifier. * */ fabric: string; /** * Details specific to the type of resource being advised. * */ resourceDetails?: { $case: "computeInstance"; computeInstance: ComputeInstanceDetails; } | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceAdviceSpec} messages. */ export declare const ResourceAdviceSpec: MessageFns; /** * Details for Compute/GPU capacity. * */ export interface ComputeInstanceDetails { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ComputeInstanceDetails"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Specific platform. Example: "gpu-h200-sxm". * */ platform: string; /** * The specific VM preset this advice applies to. * */ preset?: ComputeInstanceDetails_Preset | undefined; /** * GPU memory size. * */ gpuMemoryGigabytes: number; } /** Encodes, decodes, converts, and creates {@link ComputeInstanceDetails} messages. */ export declare const ComputeInstanceDetails: MessageFns; /** * Preset details. * */ export interface ComputeInstanceDetails_Preset { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ComputeInstanceDetails.Preset"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Name of the preset (e.g., "8gpu-128vcpu-1600gb"). * */ name: string; /** * Resources for the specified preset. * */ resources?: ComputeInstanceDetails_Preset_Resources | undefined; } /** Encodes, decodes, converts, and creates {@link ComputeInstanceDetails_Preset} messages. */ export declare const ComputeInstanceDetails_Preset: MessageFns; /** * All resources existing in a preset. * */ export interface ComputeInstanceDetails_Preset_Resources { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ComputeInstanceDetails.Preset.Resources"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Number of vCPUs. * */ vcpuCount: number; /** * Memory size. * */ memoryGibibytes: number; /** * Number of GPU cores. * */ gpuCount: number; } /** Encodes, decodes, converts, and creates {@link ComputeInstanceDetails_Preset_Resources} messages. */ export declare const ComputeInstanceDetails_Preset_Resources: MessageFns; /** * Resource Advice status. * */ export interface ResourceAdviceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAdviceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Capacity for reserved/guaranteed resources through Capacity Blocks. * */ reserved?: ResourceAdviceStatus_Availability | undefined; /** * Capacity for regular on-demand resources. * */ onDemand?: ResourceAdviceStatus_Availability | undefined; /** * Capacity for preemptible/spot resources. * */ preemptible?: ResourceAdviceStatus_Availability | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceAdviceStatus} messages. */ export declare const ResourceAdviceStatus: MessageFns; /** * Shows the available resources. * */ export interface ResourceAdviceStatus_Availability { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAdviceStatus.Availability"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Reflects relevance of the data. * */ dataState: ResourceAdviceStatus_Availability_DataState; /** * Current units that can be allocated immediately (clipped by quota). * */ available: number; /** * The user's maximum quota limit for this resource type. * */ limit: number; /** * Categorical indicator for resources availability. * */ availabilityLevel: ResourceAdviceStatus_Availability_AvailabilityLevel; /** * The timestamp of the actual infrastructure measurement. * */ effectiveAt?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceAdviceStatus_Availability} messages. */ export declare const ResourceAdviceStatus_Availability: MessageFns; /** * First version of Compute service resource affinity * */ export interface ResourceAffinityComputeV1 { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAffinityComputeV1"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The fabric where the Capacity Block Group is allocated. * */ fabric: string; /** * The platform for which the Capacity Block Group is allocated. * */ platform: string; } /** Encodes, decodes, converts, and creates {@link ResourceAffinityComputeV1} messages. */ export declare const ResourceAffinityComputeV1: MessageFns; /** * Specification of the Capacity Block Group. * */ export interface ResourceAffinity { /** Contains the fully qualified protobuf type name. */ $type: "nebius.capacity.v1.ResourceAffinity"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the selected value for the `versions` protobuf oneof. */ versions?: { $case: "computeV1"; computeV1: ResourceAffinityComputeV1; } | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceAffinity} messages. */ export declare const ResourceAffinity: MessageFns; //# sourceMappingURL=index.d.ts.map