import { 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 { ResourceMetadata } from "../../common/v1/index.js"; /** Represents the `nebius.maintenance.v1alpha1.ListMaintenancesRequest` protobuf message. */ export interface ListMaintenancesRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.ListMaintenancesRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Identifier of IAM container to list maintenance operations from. * */ parentId: string; } /** Encodes, decodes, converts, and creates {@link ListMaintenancesRequest} messages. */ export declare const ListMaintenancesRequest: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.ListMaintenancesResponse` protobuf message. */ export interface ListMaintenancesResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.ListMaintenancesResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of maintenance operations. * */ items: Maintenance[]; } /** Encodes, decodes, converts, and creates {@link ListMaintenancesResponse} messages. */ export declare const ListMaintenancesResponse: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.GetMaintenanceRequest` protobuf message. */ export interface GetMaintenanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.GetMaintenanceRequest"; /** 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 maintenance operation to return. * To get the maintenance ID use a [MaintenanceService.List] request. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetMaintenanceRequest} messages. */ export declare const GetMaintenanceRequest: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.UpdateMaintenanceRequest` protobuf message. */ export interface UpdateMaintenanceRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.UpdateMaintenanceRequest"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Metadata associated with the maintenance operation. * Must include ID of the maintenance operation to update. * */ metadata?: ResourceMetadata | undefined; /** * Updated specification for the maintenance operation. * */ spec?: MaintenanceSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateMaintenanceRequest} messages. */ export declare const UpdateMaintenanceRequest: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.UpdateMaintenanceResponse` protobuf message. */ export interface UpdateMaintenanceResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.UpdateMaintenanceResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Updated maintenance operation. * */ maintenance?: Maintenance | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateMaintenanceResponse} messages. */ export declare const UpdateMaintenanceResponse: MessageFns; /** * Defines the gRPC methods for the `nebius.maintenance.v1alpha1.MaintenanceService` service. */ export type MaintenanceServiceServiceDescription = typeof MaintenanceServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.maintenance.v1alpha1.MaintenanceService` service. */ export declare const MaintenanceServiceServiceDescription: { readonly get: { readonly path: "/nebius.maintenance.v1alpha1.MaintenanceService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetMaintenanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetMaintenanceRequest; readonly responseSerialize: (value: Maintenance) => Buffer; readonly responseDeserialize: (value: Buffer) => Maintenance; }; readonly list: { readonly path: "/nebius.maintenance.v1alpha1.MaintenanceService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListMaintenancesRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListMaintenancesRequest; readonly responseSerialize: (value: ListMaintenancesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListMaintenancesResponse; }; readonly update: { readonly path: "/nebius.maintenance.v1alpha1.MaintenanceService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateMaintenanceRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateMaintenanceRequest; readonly responseSerialize: (value: UpdateMaintenanceResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => UpdateMaintenanceResponse; }; }; /** * Handles server calls for the `nebius.maintenance.v1alpha1.MaintenanceService` service. */ export interface MaintenanceServiceServer extends UntypedServiceImplementation { /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get: handleUnaryCall; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list: handleUnaryCall; /** * Updates the specified maintenance operation. * */ update: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.maintenance.v1alpha1.MaintenanceService` service. */ export interface MaintenanceServiceBaseClient extends Client { /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Maintenance) => void): ClientUnaryCall; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListMaintenancesResponse) => void): ClientUnaryCall; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: UpdateMaintenanceResponse) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.maintenance.v1alpha1.MaintenanceService` service. */ export declare const MaintenanceServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): MaintenanceServiceBaseClient; /** Contains the gRPC service description. */ service: typeof MaintenanceServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * A set of methods for managing maintenance operations. * */ export interface MaintenanceService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.maintenance.v1alpha1.MaintenanceService"; /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest): SDKRequestClass; /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest, metadata: Metadata): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Calls the `nebius.maintenance.v1alpha1.MaintenanceService` service through the Nebius SDK. */ export declare class MaintenanceService implements MaintenanceService { private sdk; $type: "nebius.maintenance.v1alpha1.MaintenanceService"; private addr; private spec; private apiServiceName; /** Creates a client that uses the SDK service address. */ constructor(sdk: SDKInterface); /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest): SDKRequestClass; /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified maintenance operation. * To get the list of upcoming and past maintenance operations, make a [List] request. * */ get(request: GetMaintenanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of maintenance operations that belong * to the specified container. * */ list(request: ListMaintenancesRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest, metadata: Metadata): SDKRequestClass; /** * Updates the specified maintenance operation. * */ update(request: UpdateMaintenanceRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; } /** * Represents the `nebius.maintenance.v1alpha1.State` protobuf enum. */ export type State = EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** Defines the static values of {@link State}. */ export interface StateValueMembers { /** * Represents the `STATE_UNSPECIFIED` protobuf enum value. */ readonly STATE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** * Maintenance operation is scheduled to be run in the future. * */ readonly STATE_SCHEDULED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** * Maintenance operation is currently in progress. * */ readonly STATE_IN_PROGRESS: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** * Maintenance operation has been successfully completed. * */ readonly STATE_FINISHED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** * Maintenance operation has encountered an error and could not be completed. * */ readonly STATE_ERROR: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; /** * Maintenance operation has been cancelled by the system. * */ readonly STATE_CANCELLED: EnumInstance<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED">; } /** Defines the runtime API for {@link State}. */ export type StateClass = EnumClass<"UNRECOGNIZED" | "STATE_UNSPECIFIED" | "STATE_SCHEDULED" | "STATE_IN_PROGRESS" | "STATE_FINISHED" | "STATE_ERROR" | "STATE_CANCELLED"> & StateValueMembers; /** Converts and creates {@link State} values. */ export declare const State: StateClass; /** * Maintenance operations are initiated by Nebius Cloud infrastructure. * They are used to perform scheduled or urgent operations on Nebius Cloud resources, * such as Managed Services or Standalone Applications, that are necessary for * maintaining the service in an operable state. These operations run automatically, * without user intervention. * */ export interface Maintenance { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.Maintenance"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * The metadata for the maintenance operation resource. * */ metadata?: ResourceMetadata | undefined; /** * Specifications for the maintenance operation. * */ spec?: MaintenanceSpec | undefined; /** * Current status of the maintenance operation. * */ status?: MaintenanceStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Maintenance} messages. */ export declare const Maintenance: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.MaintenanceSpec` protobuf message. */ export interface MaintenanceSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.MaintenanceSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Timestamp indicating when the maintenance operation is scheduled to run. * */ scheduledAt?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link MaintenanceSpec} messages. */ export declare const MaintenanceSpec: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.MaintenanceStatus` protobuf message. */ export interface MaintenanceStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.MaintenanceStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of resources that are affected by this maintenance operation. * */ affectedResources: Resource[]; /** * Timestamp indicating when the maintenance operation started. * */ startedAt?: Dayjs | undefined; /** * Timestamp indicating when the maintenance operation finished. * */ finishedAt?: Dayjs | undefined; /** * Current state of the maintenance operation. * */ state: State; /** * Indicates whether the maintenance operation's scheduled_at time can be changed. * */ reschedulable: boolean; } /** Encodes, decodes, converts, and creates {@link MaintenanceStatus} messages. */ export declare const MaintenanceStatus: MessageFns; /** Represents the `nebius.maintenance.v1alpha1.Resource` protobuf message. */ export interface Resource { /** Contains the fully qualified protobuf type name. */ $type: "nebius.maintenance.v1alpha1.Resource"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Unique identifier for the resource. * */ id: string; /** * IAM container of the resource. * */ parentId: string; } /** Encodes, decodes, converts, and creates {@link Resource} messages. */ export declare const Resource: MessageFns; //# sourceMappingURL=index.d.ts.map