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 { Status } from "../../../google/rpc/index.js"; /** * Represents the `nebius.common.v1.ServiceError.RetryType` protobuf enum. */ export type ServiceError_RetryType = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** Defines the static values of {@link ServiceError_RetryType}. */ export interface ServiceError_RetryTypeValueMembers { /** * Represents the `UNSPECIFIED` protobuf enum value. */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Just retry the failed call. * */ readonly CALL: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Retry whole logic before call and make a new one. * */ readonly UNIT_OF_WORK: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; /** * Do not retry, this is a fatal error. * */ readonly NOTHING: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING">; } /** Defines the runtime API for {@link ServiceError_RetryType}. */ export type ServiceError_RetryTypeClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "CALL" | "UNIT_OF_WORK" | "NOTHING"> & ServiceError_RetryTypeValueMembers; /** Converts and creates {@link ServiceError_RetryType} values. */ export declare const ServiceError_RetryType: ServiceError_RetryTypeClass; /** Represents the `nebius.common.v1.ServiceError` protobuf message. */ export interface ServiceError { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ServiceError"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of Service which the error originated in. E.g. "dns". * */ service: string; /** * Detailed error code, service-specific. E.g. "DnsZoneNotEmpty". * Name of the exception, without Exception suffix if not set. * Example: for PermissionDeniedException -> code == PermissionDenied. * */ code: string; /** * Retry type tells how to provide retry, e.g.: just a single call or the whole logic before it. * */ retryType: ServiceError_RetryType; /** * Additional message describing the error, if any. * */ details?: { $case: "badRequest"; badRequest: BadRequest; } | { $case: "badResourceState"; badResourceState: BadResourceState; } | { $case: "resourceNotFound"; resourceNotFound: ResourceNotFound; } | { $case: "resourceAlreadyExists"; resourceAlreadyExists: ResourceAlreadyExists; } | { $case: "outOfRange"; outOfRange: OutOfRange; } | { $case: "permissionDenied"; permissionDenied: PermissionDenied; } | { $case: "resourceConflict"; resourceConflict: ResourceConflict; } | { $case: "operationAborted"; operationAborted: OperationAborted; } | { $case: "operationConflict"; operationConflict: OperationConflict; } | { $case: "tooManyRequests"; tooManyRequests: TooManyRequests; } | { $case: "quotaFailure"; quotaFailure: QuotaFailure; } | { $case: "notEnoughResources"; notEnoughResources: NotEnoughResources; } | { $case: "internalError"; internalError: InternalError; } | undefined; } /** Encodes, decodes, converts, and creates {@link ServiceError} messages. */ export declare const ServiceError: MessageFns; /** * The request is invalid. * */ export interface BadRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.BadRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Describes all violations. * */ violations: BadRequest_Violation[]; } /** Encodes, decodes, converts, and creates {@link BadRequest} messages. */ export declare const BadRequest: MessageFns; /** Represents the `nebius.common.v1.BadRequest.Violation` protobuf message. */ export interface BadRequest_Violation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.BadRequest.Violation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What field value is invalid. * */ field: string; /** * Description why the value is invalid, in English. * */ message: string; /** * Other fields whose values contribute to this violation. * Does not include the primary field. * */ relatedFields: string[]; } /** Encodes, decodes, converts, and creates {@link BadRequest_Violation} messages. */ export declare const BadRequest_Violation: MessageFns; /** * The resource we are trying to use, create, change or delete is in a bad state and cannot be used. * */ export interface BadResourceState { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.BadResourceState"; /** 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 resource which is bad. * */ resourceId: string; /** * The reason why this state is bad and cannot be used. * */ message: string; } /** Encodes, decodes, converts, and creates {@link BadResourceState} messages. */ export declare const BadResourceState: MessageFns; /** * Resource we are trying to interact with does not exist. * */ export interface ResourceNotFound { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ResourceNotFound"; /** 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 requested resource. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link ResourceNotFound} messages. */ export declare const ResourceNotFound: MessageFns; /** * Resource we are trying to create already exists. * */ export interface ResourceAlreadyExists { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ResourceAlreadyExists"; /** 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 existing resource. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link ResourceAlreadyExists} messages. */ export declare const ResourceAlreadyExists: MessageFns; /** * There is a difference between the actual resource state and the expected one. * */ export interface ResourceConflict { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ResourceConflict"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * ID of conflicting resource. * */ resourceId: string; /** * Detailed info about conflict. * */ message: string; } /** Encodes, decodes, converts, and creates {@link ResourceConflict} messages. */ export declare const ResourceConflict: MessageFns; /** * Operation on the resource has been aborted by a subsequent operation. * */ export interface OperationAborted { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.OperationAborted"; /** 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 aborted operation. * */ operationId: string; /** * ID of the subsequent operation. * */ abortedByOperationId: string; /** * Resource ID corresponding to both of the operations. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link OperationAborted} messages. */ export declare const OperationAborted: MessageFns; /** * Operation cannot be started because a conflicting operation is already running on the same resource. * Wait until the conflicting operation finishes, then you can retry starting your operation. * */ export interface OperationConflict { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.OperationConflict"; /** 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 conflicting operation (the one that's running). * */ conflictingOperationId: string; /** * Resource ID corresponding to the conflicting operation. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link OperationConflict} messages. */ export declare const OperationConflict: MessageFns; /** * Indicates that element with requested parameters is exceeding the particular range. * */ export interface OutOfRange { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.OutOfRange"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Requested value. * */ requested: string; /** * Available limit. * */ limit: string; } /** Encodes, decodes, converts, and creates {@link OutOfRange} messages. */ export declare const OutOfRange: MessageFns; /** * Indicates that the action cannot be performed because there are insufficient access rights to a resource. * */ export interface PermissionDenied { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.PermissionDenied"; /** 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 resource that cannot be accessed. * */ resourceId: string; } /** Encodes, decodes, converts, and creates {@link PermissionDenied} messages. */ export declare const PermissionDenied: MessageFns; /** * Generic internal error. * */ export interface InternalError { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.InternalError"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Error request ID. * */ requestId: string; /** * Trace ID for the failing request. * */ traceId: string; } /** Encodes, decodes, converts, and creates {@link InternalError} messages. */ export declare const InternalError: MessageFns; /** * You initiated too many requests to the service at once. Enhance your calm. * */ export interface TooManyRequests { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.TooManyRequests"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * What request limit is exceeded (service-dependent). * */ violation: string; } /** Encodes, decodes, converts, and creates {@link TooManyRequests} messages. */ export declare const TooManyRequests: MessageFns; /** * Indicates a failure due to exceeding specified limits or allocations in a system or service. * */ export interface QuotaFailure { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.QuotaFailure"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Describes all quota violations. * */ violations: QuotaFailure_Violation[]; } /** Encodes, decodes, converts, and creates {@link QuotaFailure} messages. */ export declare const QuotaFailure: MessageFns; /** Represents the `nebius.common.v1.QuotaFailure.Violation` protobuf message. */ export interface QuotaFailure_Violation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.QuotaFailure.Violation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Which quota check failed. * */ quota: string; /** * A description of how the quota check failed. * */ message: string; /** * Maximum permissible value. * */ limit: string; /** * Requested value. * */ requested: string; } /** Encodes, decodes, converts, and creates {@link QuotaFailure_Violation} messages. */ export declare const QuotaFailure_Violation: MessageFns; /** * Indicates that there are not enough resources available to perform the requested action. * */ export interface NotEnoughResources { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.NotEnoughResources"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Describes all resource violations. * */ violations: NotEnoughResources_Violation[]; } /** Encodes, decodes, converts, and creates {@link NotEnoughResources} messages. */ export declare const NotEnoughResources: MessageFns; /** Represents the `nebius.common.v1.NotEnoughResources.Violation` protobuf message. */ export interface NotEnoughResources_Violation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.NotEnoughResources.Violation"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The type of resource that is insufficient. * This field is populated when it is possible to determine the lacking resource type. * **Not for programmatic use.** * */ resourceType: string; /** * A description of how the resource is insufficient. * */ message: string; /** * Requested value. * */ requested: string; } /** Encodes, decodes, converts, and creates {@link NotEnoughResources_Violation} messages. */ export declare const NotEnoughResources_Violation: MessageFns; /** * Common resource metadata. * */ export interface ResourceMetadata { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ResourceMetadata"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Identifier for the resource, unique for its resource type. * */ id: string; /** * Identifier of the parent resource to which the resource belongs. * */ parentId: string; /** * Human readable name for the resource. * */ name: string; /** * Version of the resource for safe concurrent modifications and consistent reads. * Positive and monotonically increases on each resource spec change (but *not* on each change of the * resource's container(s) or status). * Service allows zero value or current. * */ resourceVersion: Long; /** * Timestamp indicating when the resource was created. * */ createdAt?: Dayjs | undefined; /** * Timestamp indicating when the resource was last updated. * */ updatedAt?: Dayjs | undefined; /** * Labels associated with the resource. * */ labels: { [key: string]: string; }; } /** Encodes, decodes, converts, and creates {@link ResourceMetadata} messages. */ export declare const ResourceMetadata: MessageFns; /** * This message is used as the request for the `GetByName` method in services supporting uniqueness * of `ResourceMetadata.name` within tuple (scope) . * */ export interface GetByNameRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.GetByNameRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `parent_id` protobuf field. */ parentId: string; /** Contains the `name` protobuf field. */ name: string; } /** Encodes, decodes, converts, and creates {@link GetByNameRequest} messages. */ export declare const GetByNameRequest: MessageFns; /** Represents the `nebius.common.v1.GetOperationRequest` protobuf message. */ export interface GetOperationRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.GetOperationRequest"; /** 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 GetOperationRequest} messages. */ export declare const GetOperationRequest: MessageFns; /** Represents the `nebius.common.v1.ListOperationsRequest` protobuf message. */ export interface ListOperationsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ListOperationsRequest"; /** 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 Resource to list operations for. * */ resourceId: string; /** * Page size. [1...1000]. Optional, if not specified, a reasonable default will be chosen by the service. * */ pageSize: Long; /** * Listing continuation token. Empty to start listing from the first page. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListOperationsRequest} messages. */ export declare const ListOperationsRequest: MessageFns; /** Represents the `nebius.common.v1.ListOperationsResponse` protobuf message. */ export interface ListOperationsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ListOperationsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** Contains the `operations` protobuf field. */ operations: Operation[]; /** Contains the `next_page_token` protobuf field. */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListOperationsResponse} messages. */ export declare const ListOperationsResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.common.v1.OperationService` service. */ export type OperationServiceServiceDescription = typeof OperationServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.common.v1.OperationService` service. */ export declare const OperationServiceServiceDescription: { readonly get: { readonly path: "/nebius.common.v1.OperationService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetOperationRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetOperationRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly list: { readonly path: "/nebius.common.v1.OperationService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListOperationsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListOperationsRequest; readonly responseSerialize: (value: ListOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListOperationsResponse; }; }; /** * Handles server calls for the `nebius.common.v1.OperationService` service. */ export interface OperationServiceServer extends UntypedServiceImplementation { /** * Returns the current state of the specified operation. * */ get: handleUnaryCall; /** * Lists operations for the specified resource. * */ list: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.common.v1.OperationService` service. */ export interface OperationServiceBaseClient extends Client { /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListOperationsResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.common.v1.OperationService` service. */ export declare const OperationServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): OperationServiceBaseClient; /** Contains the gRPC service description. */ service: typeof OperationServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * Service for reading operations. * */ export interface OperationService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.common.v1.OperationService"; /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest): SDKRequestClass>; /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata): SDKRequestClass>; /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** Contains one page of operations. */ export interface OperationServiceListResponse { /** Contains the operations on this page. */ operations: OperationWrapper[]; /** Contains the token that gets the next page. */ nextPageToken: string; } /** * Calls the `nebius.common.v1.OperationService` service through the Nebius SDK. */ export declare class OperationService implements OperationService { private sdk; private addr; $type: "nebius.common.v1.OperationService"; private spec; /** Creates a client for the specified service address. */ constructor(sdk: SDKInterface, addr: string); /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest): SDKRequestClass>; /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata): SDKRequestClass>; /** * Returns the current state of the specified operation. * */ get(request: GetOperationRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata): SDKRequestClass; /** * Lists operations for the specified resource. * */ list(request: ListOperationsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** Represents the `nebius.common.v1.Operation` protobuf message. */ export interface Operation { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.Operation"; /** 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 operation. * */ id: string; /** * Human-readable description of the operation. 0-256 characters long. * */ description: string; /** * Creation timestamp. * */ createdAt?: Dayjs | undefined; /** * ID of the user or service account who initiated the operation. * */ createdBy: string; /** * The time when the operation has finished. * */ finishedAt?: Dayjs | undefined; /** * The request that generated this operation. * */ request?: { typeUrl: string; value: Uint8Array; } | undefined; /** * The request headers that are essential for the request that generated the operation. * For instance, `x-resetmask`. Without these headers the request might have been processed * differently if repeated. * All the header names *must* be converted to lower case. * Validator is based on: * https://httpwg.org/specs/rfc9110.html#considerations.for.new.field.names * */ requestHeaders: { [key: string]: Operation_RequestHeader; }; /** * ID of the resource that this operation creates, updates, deletes or otherwise changes. * * If the operation affects multiple resources or does not affect any API resources at all * (e.g. a routine maintenance operation visible to the user), the [resource_id] must be empty. * */ resourceId: string; /** * The status of this operation. Set when this operation is completed. * See https://github.com/grpc/grpc/blob/master/src/proto/grpc/status/status.proto. * * [status.code] is https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto: * - If [status.code] == OK, the operation has completed successfully. * - If [status.code] != OK, the operation has failed or has been cancelled. * - [status.message] will contain a user-readable and actionable error message. * - [status.details] will contain additional diagnostic information in the form of [ServiceError] from nebius/common/v1/error.proto * - [status.code] must belong to an Operation-compatible subset of GRPC codes: * OK, CANCELLED, PERMISSION_DENIED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, INTERNAL * */ status?: Status | undefined; /** * Information about this operation's progress, if this operation tracks its progress. * If the operation tracks its progress, `progress_tracker` MUST be present both while * the operation is running and after it has been completed. * */ progressTracker?: ProgressTracker | undefined; /** * Extra information about this operation's progress. MAY be absent while the operation is running, MUST be absent after the operation has * completed. * * Type of message that's stored inside [progress_data] is service-dependent. * */ progressData?: { typeUrl: string; value: Uint8Array; } | undefined; } /** Encodes, decodes, converts, and creates {@link Operation} messages. */ export declare const Operation: MessageFns; /** * Request header is a container for all the values of a particular header of a request because there is no such thing as * `map` * */ export interface Operation_RequestHeader { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.Operation.RequestHeader"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The values of a particular header from a request * */ values: string[]; } /** Encodes, decodes, converts, and creates {@link Operation_RequestHeader} messages. */ export declare const Operation_RequestHeader: MessageFns; /** * Operation evaluated by the preflight check. * */ export type PreflightCheckContext_Action = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; /** Defines the static values of {@link PreflightCheckContext_Action}. */ export interface PreflightCheckContext_ActionValueMembers { /** * Infer UPDATE when the request metadata contains a resource ID; otherwise infer CREATE. * */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; /** * Evaluate resource creation. * */ readonly CREATE: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; /** * Evaluate a resource update. * */ readonly UPDATE: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; /** * Evaluate resource deletion. Reserved until delete preflight requests are supported. * */ readonly DELETE: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; /** * Evaluate resource recreation. This is the same as CREATE, but assumes that the resource * with the requested ID is deleted immediately before it is created. * */ readonly RECREATE: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE">; } /** Defines the runtime API for {@link PreflightCheckContext_Action}. */ export type PreflightCheckContext_ActionClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "CREATE" | "UPDATE" | "DELETE" | "RECREATE"> & PreflightCheckContext_ActionValueMembers; /** Converts and creates {@link PreflightCheckContext_Action} values. */ export declare const PreflightCheckContext_Action: PreflightCheckContext_ActionClass; /** * Effect of the diagnostic on the proposed operation. * */ export type PreflightCheckDiagnostic_Severity = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "ERROR" | "WARNING">; /** Defines the static values of {@link PreflightCheckDiagnostic_Severity}. */ export interface PreflightCheckDiagnostic_SeverityValueMembers { /** * Invalid for a returned diagnostic. * */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "ERROR" | "WARNING">; /** * The proposed operation cannot proceed. * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "ERROR" | "WARNING">; /** * The proposed operation can proceed, subject to requires_user_approval. * */ readonly WARNING: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "ERROR" | "WARNING">; } /** Defines the runtime API for {@link PreflightCheckDiagnostic_Severity}. */ export type PreflightCheckDiagnostic_SeverityClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "ERROR" | "WARNING"> & PreflightCheckDiagnostic_SeverityValueMembers; /** Converts and creates {@link PreflightCheckDiagnostic_Severity} values. */ export declare const PreflightCheckDiagnostic_Severity: PreflightCheckDiagnostic_SeverityClass; /** * Context supplied by a caller when requesting a server-side preflight check. * */ export interface PreflightCheckContext { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.PreflightCheckContext"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Operation evaluated by the preflight check. * */ action: PreflightCheckContext_Action; /** * Lower-case name of the calling tool, such as "terraform", "cli", or "console". * Empty means that no tool-specific behavior is requested. * */ tool: string; /** * Nebius mask identifying values in the proposed request that are unknown. * An unknown value is not available to the caller when it sends the preflight request. * The caller expects the actual value to be available when the create or update operation runs. * The mask is rooted at the request's metadata and spec fields. Empty means all supplied values are known; * "*" means the complete proposed request is unknown. * */ unknownPaths: string; /** * Additive Nebius mask of fields that require resource recreation when changed. * For RECREATE, the calling tool fills this mask with the paths that caused it to recreate the resource. * If a field at one of these paths changes, the calling tool must delete the existing resource * and create a new resource with the requested values. * Empty means that the caller has not identified any such fields. * */ pathsRequireRecreate: string; } /** Encodes, decodes, converts, and creates {@link PreflightCheckContext} messages. */ export declare const PreflightCheckContext: MessageFns; /** * A user-facing diagnostic produced by a preflight check. * */ export interface PreflightCheckDiagnostic { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.PreflightCheckDiagnostic"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Effect of the diagnostic on the proposed operation. Must not be UNSPECIFIED. * */ severity: PreflightCheckDiagnostic_Severity; /** * Required single-line, plain-text user-facing explanation. * */ summary: string; /** * Optional plain-text consequence and remediation details. * */ details: string; /** * Optional Nebius field path rooted at metadata or spec. * Empty means that the diagnostic applies to the resource or operation as a whole. * */ path: string; } /** Encodes, decodes, converts, and creates {@link PreflightCheckDiagnostic} messages. */ export declare const PreflightCheckDiagnostic: MessageFns; /** * Common preflight result for services that do not expose additional machine-readable impact fields. * Service-defined result messages implement the same structural interface by declaring these three fields * with the same names and types, and may add service-specific fields. * */ export interface PreflightCheckResult { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.PreflightCheckResult"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Diagnostics produced while evaluating the proposed operation. * */ diagnostics: PreflightCheckDiagnostic[]; /** * Additive Nebius mask of fields that the service identifies as requiring resource recreation when changed. * For UPDATE, the service may set these paths to notify the caller to use RECREATE instead of failing because * the resource cannot be updated. Empty means that the service has not identified any such fields; "*" means * that the resource must be recreated without an attributable field. * */ pathsRequireRecreate: string; /** * Whether the caller must display the diagnostics and obtain explicit user approval before proceeding. * */ requiresUserApproval: boolean; } /** Encodes, decodes, converts, and creates {@link PreflightCheckResult} messages. */ export declare const PreflightCheckResult: MessageFns; /** * Information for tracking the progress of a task (e.g., an API operation or background maintenance action). * This serves as a UI contract and may be directly reflected in CLI, Console, and other tools. * */ export interface ProgressTracker { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ProgressTracker"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Human-readable description of the currently executing task, e.g., "Downloading dat-groot-llm.tar.xz". * Relates to the overall task, not individual steps. * SHOULD match the Operation's `description` field when this ProgressTracker tracks an API Operation's progress. * MAY provide more detailed overall information. * * MUST be suitable for display to public users. * Even if the task is internal, this description may be shown to end users in overall task step descriptions. * * For individual step descriptions, use `Step.description`. * */ description: string; /** * Timestamp when the overall task started. * MUST match the operation's created_at timestamp when tracking an API Operation's progress. * */ startedAt?: Dayjs | undefined; /** * Estimated completion timestamp for the task. * MUST be absent if the task is completed (i.e., finished_at is set). * MAY be absent if the estimate is unknown. * MAY be updated as the progress estimate changes. * */ estimatedFinishedAt?: Dayjs | undefined; /** * Completion timestamp of the task. * MUST be absent for running tasks; MUST be present for completed tasks. * MUST match the operation's finished_at timestamp when tracking an API Operation's progress. * */ finishedAt?: Dayjs | undefined; /** * Overall work progress details. * MAY be absent if unknown. * */ workDone?: ProgressTracker_WorkDone | undefined; /** * Detailed information about the task steps that are currently running or have been finished. * - For a completed task, the step list MUST either be empty or contain finished steps only. * - For a running task, the step list MAY be empty if the task consists of a single step or no detailed information is available. * A non-empty step list MUST include all currently running steps and MAY include some or all finished steps. * - Service SHOULD provide both running and finished steps if the task has around 10-20 steps, and provide only running steps otherwise. * Service MUST consistently choose either the "running steps only" or the "running + finished steps" behavior. * - The UI, CLI etc. MAY choose not to display all steps provided by the service. * */ steps: ProgressTracker_Step[]; } /** Encodes, decodes, converts, and creates {@link ProgressTracker} messages. */ export declare const ProgressTracker: MessageFns; /** * Information about the work done by the task or its step, expressed in ticks (abstract work units). * Each tick may represent a real measurement (e.g., VMs created, KiB uploaded), number of substeps or a percentage of work completed. * */ export interface ProgressTracker_WorkDone { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ProgressTracker.WorkDone"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Total number of ticks (work units) to be completed. MUST be greater than 0. * */ totalTickCount: Long; /** * Number of ticks completed so far. MUST be between 0 and total_tick_count, inclusive. * MUST equal total_tick_count if the task or step is finished. * */ doneTickCount: Long; } /** Encodes, decodes, converts, and creates {@link ProgressTracker_WorkDone} messages. */ export declare const ProgressTracker_WorkDone: MessageFns; /** * Represents a basic step in the task. * Fields are binary-compatible with ProgressTracker for easier processing. * */ export interface ProgressTracker_Step { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ProgressTracker.Step"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Human-readable description of the step, e.g., "Connecting to localhost:8080". * MUST be suitable for display to public users. * Private descriptions must be filtered server-side based on the use case. * */ description: string; /** * Timestamp when the step started. * */ startedAt?: Dayjs | undefined; /** * Timestamp when the step finished. * MUST be absent for running steps; MUST be present for completed steps. * */ finishedAt?: Dayjs | undefined; /** * Details on the work to be done for this step and progress made. * MAY be absent if unknown. * */ workDone?: ProgressTracker_WorkDone | undefined; } /** Encodes, decodes, converts, and creates {@link ProgressTracker_Step} messages. */ export declare const ProgressTracker_Step: MessageFns; /** * Represents the `nebius.common.v1.ResourceEvent.Level` protobuf enum. */ export type ResourceEvent_Level = EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; /** Defines the static values of {@link ResourceEvent_Level}. */ export interface ResourceEvent_LevelValueMembers { /** * Unspecified event severity level * */ readonly UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; /** * A debug event providing detailed insight. Such events are used to debug problems with specific resource(s) and process(es) * */ readonly DEBUG: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; /** * A normal event or state change. Informs what is happening with the API resource. Does not require user attention or interaction * */ readonly INFO: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; /** * Warning event. Indicates a potential or minor problem with the API resource and/or the corresponding processes. Needs user attention, * but requires no immediate action (yet) * */ readonly WARN: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; /** * Error event. Indicates a serious problem with the API resource and/or the corresponding processes. Requires immediate user action * */ readonly ERROR: EnumInstance<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR">; } /** Defines the runtime API for {@link ResourceEvent_Level}. */ export type ResourceEvent_LevelClass = EnumClass<"UNRECOGNIZED" | "UNSPECIFIED" | "DEBUG" | "INFO" | "WARN" | "ERROR"> & ResourceEvent_LevelValueMembers; /** Converts and creates {@link ResourceEvent_Level} values. */ export declare const ResourceEvent_Level: ResourceEvent_LevelClass; /** * Represents an API Resource-related event which is potentially important to the end-user. What exactly constitutes an *event* to be * reported is service-dependent * */ export interface ResourceEvent { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.ResourceEvent"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Time at which the event has occurred * */ occurredAt?: Dayjs | undefined; /** * Severity level for the event * */ level: ResourceEvent_Level; /** * Event code (unique within the API service), in UpperCamelCase, e.g. `"DiskAttached"` * */ code: string; /** * A human-readable message describing what has happened * (and suggested actions for the user, if this is a `WARN` or `ERROR` level event) * */ message: string; /** * Describes a GRPC error status associated with an `ERROR` or `WARN` level event, if known. The `error` **must** have a standard GRPC * `code` (which **must not** be `OK` (0)) and a human-readable `message`. A standard `common.v1.ServiceError` **should** also be * included in `details` * */ error?: Status | undefined; } /** Encodes, decodes, converts, and creates {@link ResourceEvent} messages. */ export declare const ResourceEvent: MessageFns; /** * A resource event that has occurred (more or less in the same way) multiple times across a service-defined aggregation interval * */ export interface RecurrentResourceEvent { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.RecurrentResourceEvent"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Time of the first occurrence of a recurrent event * */ firstOccurredAt?: Dayjs | undefined; /** * Last occurrence of a recurrent event * */ lastOccurrence?: ResourceEvent | undefined; /** * The number of times this event has occurred between `first_occurred_at` and `last_occurrence.occurred_at`. Must be > 0 * */ occurrenceCount: Long; } /** Encodes, decodes, converts, and creates {@link RecurrentResourceEvent} messages. */ export declare const RecurrentResourceEvent: MessageFns; /** * Represents the `nebius.common.v1.Warning.Target` protobuf enum. */ export type Warning_Target = EnumInstance<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE">; /** Defines the static values of {@link Warning_Target}. */ export interface Warning_TargetValueMembers { /** * Target is not specified. * */ readonly TARGET_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE">; /** * Warning is intended for CLI users. * */ readonly TARGET_CLI: EnumInstance<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE">; /** * Warning is intended for Terraform provider users. * */ readonly TARGET_TF: EnumInstance<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE">; /** * Warning is intended for console users. * */ readonly TARGET_CONSOLE: EnumInstance<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE">; } /** Defines the runtime API for {@link Warning_Target}. */ export type Warning_TargetClass = EnumClass<"UNRECOGNIZED" | "TARGET_UNSPECIFIED" | "TARGET_CLI" | "TARGET_TF" | "TARGET_CONSOLE"> & Warning_TargetValueMembers; /** Converts and creates {@link Warning_Target} values. */ export declare const Warning_Target: Warning_TargetClass; /** * Represents the `nebius.common.v1.Warning.Code` protobuf enum. */ export type Warning_Code = EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** Defines the static values of {@link Warning_Code}. */ export interface Warning_CodeValueMembers { /** * Code is not specified. * */ readonly CODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * The request was served via failover routing. * */ readonly CODE_REGION_ROUTING_FAILOVER: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Client tool version is deprecated. * */ readonly CODE_DEPRECATED_TOOL_VERSION: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Endpoint is deprecated. * */ readonly CODE_DEPRECATED_ENDPOINT: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Proto field, message or service is deprecated. * */ readonly CODE_DEPRECATED_PROTO: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Deprecated value was used in the request. * */ readonly CODE_DEPRECATED_SPEC_VALUE_REQUEST: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Deprecated value was observed in the response. * */ readonly CODE_DEPRECATED_SPEC_VALUE_RESPONSE: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Not-recommended value was used in the request. * */ readonly CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Nebius ID in the request has an invalid resource type. * */ readonly CODE_INVALID_NEBIUS_ID_REQUEST: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * Nebius ID in the request has an invalid format. * */ readonly CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; /** * ListAggregated returned incomplete results because one or more regions could not be queried. * */ readonly CODE_LIST_AGGREGATED_PARTIAL: EnumInstance<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL">; } /** Defines the runtime API for {@link Warning_Code}. */ export type Warning_CodeClass = EnumClass<"UNRECOGNIZED" | "CODE_UNSPECIFIED" | "CODE_REGION_ROUTING_FAILOVER" | "CODE_DEPRECATED_TOOL_VERSION" | "CODE_DEPRECATED_ENDPOINT" | "CODE_DEPRECATED_PROTO" | "CODE_DEPRECATED_SPEC_VALUE_REQUEST" | "CODE_DEPRECATED_SPEC_VALUE_RESPONSE" | "CODE_NOT_RECOMMENDED_SPEC_VALUE_REQUEST" | "CODE_INVALID_NEBIUS_ID_REQUEST" | "CODE_INVALID_NEBIUS_ID_FORMAT_REQUEST" | "CODE_LIST_AGGREGATED_PARTIAL"> & Warning_CodeValueMembers; /** Converts and creates {@link Warning_Code} values. */ export declare const Warning_Code: Warning_CodeClass; /** Represents the `nebius.common.v1.Warnings` protobuf message. */ export interface Warnings { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.Warnings"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of warnings associated with the response. * */ warnings: Warning[]; } /** Encodes, decodes, converts, and creates {@link Warnings} messages. */ export declare const Warnings: MessageFns; /** Represents the `nebius.common.v1.Warning` protobuf message. */ export interface Warning { /** Contains the fully qualified protobuf type name. */ $type: "nebius.common.v1.Warning"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Target client or tool for which this warning is intended. * */ target: Warning_Target; /** * Warning category. * */ code: Warning_Code; /** * User-facing summary text. Can contain a liquid format template which must be executed on client side. * Empty means use summary_fallback. * */ summary: string; /** * Summary text to use when summary is empty or not applicable. * Can contain a liquid format template which must be executed on client side. * */ summaryFallback: string; /** * User-facing details text. Can contain a liquid format template which must be executed on client side. * Empty means use details_fallback. * */ details: string; /** * Details text to use when details is empty or not applicable. * Can contain a liquid format template which must be executed on client side. * */ detailsFallback: string; /** * Contains a Full Service/Method name or a select mask for a field. * Examples: * ``` * nebius.compute.v1.InstanceService * nebius.compute.v1.InstanceService/Get * spec.control_plane.version * spec.network_interfaces.0.subnet_id * items.0.spec.control_plane.version * ``` * */ path: string; } /** Encodes, decodes, converts, and creates {@link Warning} messages. */ export declare const Warning: MessageFns; //# sourceMappingURL=index.d.ts.map