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 { GetByNameRequest, ResourceMetadata } from "../../../common/v1/index.js"; import { GetOperationRequest, Operation, OperationService } from "../../../common/v1alpha1/index.js"; import { PostgresqlConfig16 } from "./config/index.js"; import { ClusterStatus_Phase, ClusterStatus_State } from "../../v1alpha1/index.js"; import { DiskSpec, HostSpec, PresetDetails, ResourcesSpec } from "../../v1alpha1/resource/index.js"; /** Represents the `nebius.msp.postgresql.v1alpha1.GetBackupRequest` protobuf message. */ export interface GetBackupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.GetBackupRequest"; /** 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 PostgreSQL cluster that holds backup. * */ clusterId: string; /** * ID of the designated backup. * */ backupId: string; } /** Encodes, decodes, converts, and creates {@link GetBackupRequest} messages. */ export declare const GetBackupRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ListBackupsRequest` protobuf message. */ export interface ListBackupsRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ListBackupsRequest"; /** 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 backups from. * */ parentId: string; } /** Encodes, decodes, converts, and creates {@link ListBackupsRequest} messages. */ export declare const ListBackupsRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ListBackupsByClusterRequest` protobuf message. */ export interface ListBackupsByClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ListBackupsByClusterRequest"; /** 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 PostgreSQL cluster to list backups from. * */ clusterId: string; } /** Encodes, decodes, converts, and creates {@link ListBackupsByClusterRequest} messages. */ export declare const ListBackupsByClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ListBackupsResponse` protobuf message. */ export interface ListBackupsResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ListBackupsResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of backups. * */ backups: Backup[]; } /** Encodes, decodes, converts, and creates {@link ListBackupsResponse} messages. */ export declare const ListBackupsResponse: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.CreateBackupRequest` protobuf message. */ export interface CreateBackupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.CreateBackupRequest"; /** 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 PostgreSQL cluster that holds backup. * */ clusterId: string; } /** Encodes, decodes, converts, and creates {@link CreateBackupRequest} messages. */ export declare const CreateBackupRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.DeleteBackupRequest` protobuf message. */ export interface DeleteBackupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.DeleteBackupRequest"; /** 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 PostgreSQL cluster that holds backup. * */ clusterId: string; /** * ID of the designated backup. * */ backupId: string; } /** Encodes, decodes, converts, and creates {@link DeleteBackupRequest} messages. */ export declare const DeleteBackupRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.msp.postgresql.v1alpha1.BackupService` service. */ export type BackupServiceServiceDescription = typeof BackupServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.msp.postgresql.v1alpha1.BackupService` service. */ export declare const BackupServiceServiceDescription: { readonly get: { readonly path: "/nebius.msp.postgresql.v1alpha1.BackupService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetBackupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetBackupRequest; readonly responseSerialize: (value: Backup) => Buffer; readonly responseDeserialize: (value: Buffer) => Backup; }; readonly list: { readonly path: "/nebius.msp.postgresql.v1alpha1.BackupService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBackupsRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListBackupsRequest; readonly responseSerialize: (value: ListBackupsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBackupsResponse; }; readonly listByCluster: { readonly path: "/nebius.msp.postgresql.v1alpha1.BackupService/ListByCluster"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBackupsByClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListBackupsByClusterRequest; readonly responseSerialize: (value: ListBackupsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBackupsResponse; }; readonly create: { readonly path: "/nebius.msp.postgresql.v1alpha1.BackupService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateBackupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateBackupRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.msp.postgresql.v1alpha1.BackupService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteBackupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteBackupRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.msp.postgresql.v1alpha1.BackupService` service. */ export interface BackupServiceServer extends UntypedServiceImplementation { /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get: handleUnaryCall; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list: handleUnaryCall; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster: handleUnaryCall; /** * Creates a new on-demand backup. * */ create: handleUnaryCall; /** * Deletes an on-demand backup. * */ delete: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.msp.postgresql.v1alpha1.BackupService` service. */ export interface BackupServiceBaseClient extends Client { /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Backup) => void): ClientUnaryCall; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListBackupsResponse) => void): ClientUnaryCall; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListBackupsResponse) => void): ClientUnaryCall; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.msp.postgresql.v1alpha1.BackupService` service. */ export declare const BackupServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): BackupServiceBaseClient; /** Contains the gRPC service description. */ service: typeof BackupServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * A set of methods for managing PostgreSQL Cluster backups. * */ export interface BackupService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.msp.postgresql.v1alpha1.BackupService"; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest): SDKRequestClass>; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.msp.postgresql.v1alpha1.BackupService` service through the Nebius SDK. */ export declare class BackupService implements BackupService { private sdk; $type: "nebius.msp.postgresql.v1alpha1.BackupService"; 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; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster backup. * To get the list of available PostgreSQL Cluster backups, make a [List] or [ListByCluster] request. * */ get(request: GetBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by project. * */ list(request: ListBackupsRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster backups by cluster. * */ listByCluster(request: ListBackupsByClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest): SDKRequestClass>; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new on-demand backup. * */ create(request: CreateBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes an on-demand backup. * */ delete(request: DeleteBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** Represents the `nebius.msp.postgresql.v1alpha1.Backup` protobuf message. */ export interface Backup { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.Backup"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Required. ID of the backup. * */ id: string; /** * ID of the PostgreSQL cluster that the backup was created for. * */ sourceClusterId: string; /** * Creation start timestamp. * */ creationStart?: Dayjs | undefined; /** * Creation finish timestamp. * */ creationFinish?: Dayjs | undefined; /** * Name of the PostgreSQL cluster that the backup was created for. * */ sourceClusterName: string; /** * Is PostgreSQL cluster that the backup was created for visible. * */ sourceClusterVisible: boolean; /** * Is the backup an on-demand manual backup. * */ onDemand: boolean; /** * Size of the backup in bytes. * */ sizeBytes: Long; } /** Encodes, decodes, converts, and creates {@link Backup} messages. */ export declare const Backup: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.GetClusterRequest` protobuf message. */ export interface GetClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.GetClusterRequest"; /** 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 PostgreSQL Cluster resource to return. * To get the cluster ID use a [ClusterService.List] request. * */ id: string; } /** Encodes, decodes, converts, and creates {@link GetClusterRequest} messages. */ export declare const GetClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.GetClusterForBackupRequest` protobuf message. */ export interface GetClusterForBackupRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.GetClusterForBackupRequest"; /** 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 PostgreSQL cluster that holds backup. * */ id: string; /** * ID of the backup for which source cluster is requested. * */ backupId: string; } /** Encodes, decodes, converts, and creates {@link GetClusterForBackupRequest} messages. */ export declare const GetClusterForBackupRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ListClustersRequest` protobuf message. */ export interface ListClustersRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ListClustersRequest"; /** 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 clusters from. * */ parentId: string; /** * Specifies the maximum number of items to return in the response. * */ pageSize: Long; /** * Token for pagination, allowing the retrieval of the next set of results. * */ pageToken: string; } /** Encodes, decodes, converts, and creates {@link ListClustersRequest} messages. */ export declare const ListClustersRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ListClustersResponse` protobuf message. */ export interface ListClustersResponse { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ListClustersResponse"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * List of PostgreSQL Cluster resources. * */ clusters: Cluster[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListClustersRequest.page_size], use the [next_page_token] as the value * for the [ListClustersRequest.page_token] parameter in the next list request. Each subsequent * list request will have its own [next_page_token] to continue paging through the results. * */ nextPageToken: string; } /** Encodes, decodes, converts, and creates {@link ListClustersResponse} messages. */ export declare const ListClustersResponse: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.CreateClusterRequest` protobuf message. */ export interface CreateClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.CreateClusterRequest"; /** 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 new cluster. * */ metadata?: ResourceMetadata | undefined; /** * Specification for the new cluster. * */ spec?: ClusterSpec | undefined; } /** Encodes, decodes, converts, and creates {@link CreateClusterRequest} messages. */ export declare const CreateClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.RestoreClusterRequest` protobuf message. */ export interface RestoreClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.RestoreClusterRequest"; /** 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 new cluster. * */ metadata?: ResourceMetadata | undefined; /** * Specification for the new cluster. * */ spec?: ClusterSpec | undefined; /** * ID of the backup to restore from. * */ backupId: string; /** * ID of the PostgreSQL cluster to restore from. * */ sourceClusterId: string; /** * Timestamp for point in time recovery. * */ recoveryTime?: Dayjs | undefined; } /** Encodes, decodes, converts, and creates {@link RestoreClusterRequest} messages. */ export declare const RestoreClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.DeleteClusterRequest` protobuf message. */ export interface DeleteClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.DeleteClusterRequest"; /** 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 PostgreSQL cluster to delete. * To get the PostgreSQL cluster ID, use a [ClusterService.List] request. * */ id: string; } /** Encodes, decodes, converts, and creates {@link DeleteClusterRequest} messages. */ export declare const DeleteClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.UpdateClusterRequest` protobuf message. */ export interface UpdateClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.UpdateClusterRequest"; /** 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 cluster. Must include id of the cluster we are going to update. * */ metadata?: ResourceMetadata | undefined; /** * Updated specification for the cluster. * */ spec?: ClusterSpec | undefined; } /** Encodes, decodes, converts, and creates {@link UpdateClusterRequest} messages. */ export declare const UpdateClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.StopClusterRequest` protobuf message. */ export interface StopClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.StopClusterRequest"; /** 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 PostgreSQL Cluster resource to pause. * To get the cluster ID use a [ClusterService.List] request. * */ id: string; } /** Encodes, decodes, converts, and creates {@link StopClusterRequest} messages. */ export declare const StopClusterRequest: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.StartClusterRequest` protobuf message. */ export interface StartClusterRequest { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.StartClusterRequest"; /** 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 PostgreSQL Cluster resource to resume. * To get the cluster ID use a [ClusterService.List] request. * */ id: string; } /** Encodes, decodes, converts, and creates {@link StartClusterRequest} messages. */ export declare const StartClusterRequest: MessageFns; /** * Defines the gRPC methods for the `nebius.msp.postgresql.v1alpha1.ClusterService` service. */ export type ClusterServiceServiceDescription = typeof ClusterServiceServiceDescription; /** * Describes the gRPC methods for the `nebius.msp.postgresql.v1alpha1.ClusterService` service. */ export declare const ClusterServiceServiceDescription: { readonly get: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetClusterRequest; readonly responseSerialize: (value: Cluster) => Buffer; readonly responseDeserialize: (value: Buffer) => Cluster; }; readonly getByName: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/GetByName"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetByNameRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetByNameRequest; readonly responseSerialize: (value: Cluster) => Buffer; readonly responseDeserialize: (value: Buffer) => Cluster; }; readonly getForBackup: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/GetForBackup"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetClusterForBackupRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => GetClusterForBackupRequest; readonly responseSerialize: (value: Cluster) => Buffer; readonly responseDeserialize: (value: Buffer) => Cluster; }; readonly list: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClustersRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => ListClustersRequest; readonly responseSerialize: (value: ListClustersResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClustersResponse; }; readonly create: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => CreateClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly delete: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => DeleteClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly update: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: true; readonly requestDeserialize: (value: Buffer) => UpdateClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly restore: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Restore"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RestoreClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => RestoreClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly stop: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Stop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StopClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; readonly start: { readonly path: "/nebius.msp.postgresql.v1alpha1.ClusterService/Start"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StartClusterRequest) => Buffer; readonly requestDescriptor: () => MessageDescriptor | undefined; readonly sendResetMask: false; readonly requestDeserialize: (value: Buffer) => StartClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; /** * Handles server calls for the `nebius.msp.postgresql.v1alpha1.ClusterService` service. */ export interface ClusterServiceServer extends UntypedServiceImplementation { /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get: handleUnaryCall; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName: handleUnaryCall; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup: handleUnaryCall; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list: handleUnaryCall; /** * Creates a PostgreSQL cluster in the specified folder. * */ create: handleUnaryCall; /** * Deletes the specified PostgreSQL cluster. * */ delete: handleUnaryCall; /** * Updates the PostgreSQL cluster. * */ update: handleUnaryCall; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore: handleUnaryCall; /** * Suspends the PostgreSQL cluster to save resources. * */ stop: handleUnaryCall; /** * Wakes up suspended PostgreSQL cluster. * */ start: handleUnaryCall; } /** * Defines the low-level gRPC client for the `nebius.msp.postgresql.v1alpha1.ClusterService` service. */ export interface ClusterServiceBaseClient extends Client { /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Cluster) => void): ClientUnaryCall; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Cluster) => void): ClientUnaryCall; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Cluster) => void): ClientUnaryCall; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: ListClustersResponse) => void): ClientUnaryCall; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest, metadata: Metadata, options: Partial, callback: (error: GrpcServiceError | null, response: Operation) => void): ClientUnaryCall; } /** * Creates low-level gRPC clients for the `nebius.msp.postgresql.v1alpha1.ClusterService` service. */ export declare const ClusterServiceBaseClient: { /** Creates a low-level client for the service address. */ new (address: string, credentials: ChannelCredentials, options?: Partial): ClusterServiceBaseClient; /** Contains the gRPC service description. */ service: typeof ClusterServiceServiceDescription; /** Contains the fully qualified protobuf service name. */ serviceName: string; }; /** * A set of methods for managing PostgreSQL Cluster resources. * */ export interface ClusterService { /** Contains the fully qualified protobuf service name. */ $type: "nebius.msp.postgresql.v1alpha1.ClusterService"; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest): SDKRequestClass>; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Calls the `nebius.msp.postgresql.v1alpha1.ClusterService` service through the Nebius SDK. */ export declare class ClusterService implements ClusterService { private sdk; $type: "nebius.msp.postgresql.v1alpha1.ClusterService"; 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; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource. * To get the list of available PostgreSQL Cluster resources, make a [List] request. * */ get(request: GetClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource by name. * */ getByName(request: GetByNameRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest, metadata: Metadata): SDKRequestClass; /** * Returns the specified PostgreSQL Cluster resource for backup. * It should be used as a hint of cluster configuration in case of backup restoration. * */ getForBackup(request: GetClusterForBackupRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest, metadata: Metadata): SDKRequestClass; /** * Retrieves the list of PostgreSQL Cluster resources that belong * to the specified folder. * */ list(request: ListClustersRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest): SDKRequestClass>; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a PostgreSQL cluster in the specified folder. * */ create(request: CreateClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Deletes the specified PostgreSQL cluster. * */ delete(request: DeleteClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Updates the PostgreSQL cluster. * */ update(request: UpdateClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Creates a new PostgreSQL cluster from a previously created backup. * */ restore(request: RestoreClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Suspends the PostgreSQL cluster to save resources. * */ stop(request: StopClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest, metadata: Metadata): SDKRequestClass>; /** * Wakes up suspended PostgreSQL cluster. * */ start(request: StartClusterRequest, metadata: Metadata, options: Partial & RetryOptions): SDKRequestClass>; } /** * Represents the `nebius.msp.postgresql.v1alpha1.ConnectionPoolerConfig.PoolingMode` protobuf enum. */ export type ConnectionPoolerConfig_PoolingMode = EnumInstance<"UNRECOGNIZED" | "POOLING_MODE_UNSPECIFIED" | "SESSION" | "TRANSACTION">; /** Defines the static values of {@link ConnectionPoolerConfig_PoolingMode}. */ export interface ConnectionPoolerConfig_PoolingModeValueMembers { /** * Represents the `POOLING_MODE_UNSPECIFIED` protobuf enum value. */ readonly POOLING_MODE_UNSPECIFIED: EnumInstance<"UNRECOGNIZED" | "POOLING_MODE_UNSPECIFIED" | "SESSION" | "TRANSACTION">; /** * Session pooling mode. * */ readonly SESSION: EnumInstance<"UNRECOGNIZED" | "POOLING_MODE_UNSPECIFIED" | "SESSION" | "TRANSACTION">; /** * Transaction pooling mode. * */ readonly TRANSACTION: EnumInstance<"UNRECOGNIZED" | "POOLING_MODE_UNSPECIFIED" | "SESSION" | "TRANSACTION">; } /** Defines the runtime API for {@link ConnectionPoolerConfig_PoolingMode}. */ export type ConnectionPoolerConfig_PoolingModeClass = EnumClass<"UNRECOGNIZED" | "POOLING_MODE_UNSPECIFIED" | "SESSION" | "TRANSACTION"> & ConnectionPoolerConfig_PoolingModeValueMembers; /** Converts and creates {@link ConnectionPoolerConfig_PoolingMode} values. */ export declare const ConnectionPoolerConfig_PoolingMode: ConnectionPoolerConfig_PoolingModeClass; /** Represents the `nebius.msp.postgresql.v1alpha1.Cluster` protobuf message. */ export interface Cluster { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.Cluster"; /** 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?: ClusterSpec | undefined; /** Contains the `status` protobuf field. */ status?: ClusterStatus | undefined; } /** Encodes, decodes, converts, and creates {@link Cluster} messages. */ export declare const Cluster: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ConnectionPoolerConfig` protobuf message. */ export interface ConnectionPoolerConfig { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ConnectionPoolerConfig"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Mode that the connection pooler is working in. * */ poolingMode: ConnectionPoolerConfig_PoolingMode; /** * Maximum number of connections in the pool for a single user/database pair. * */ maxPoolSize?: Long | undefined; } /** Encodes, decodes, converts, and creates {@link ConnectionPoolerConfig} messages. */ export declare const ConnectionPoolerConfig: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ClusterSpec` protobuf message. */ export interface ClusterSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ClusterSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Description of the PostgreSQL cluster. * */ description: string; /** * Network ID in which the cluster is created. * */ networkId: string; /** Contains the `config` protobuf field. */ config?: ConfigSpec | undefined; /** Contains the `bootstrap` protobuf field. */ bootstrap?: BootstrapSpec | undefined; /** Contains the `backup` protobuf field. */ backup?: BackupSpec | undefined; } /** Encodes, decodes, converts, and creates {@link ClusterSpec} messages. */ export declare const ClusterSpec: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ClusterStatus` protobuf message. */ export interface ClusterStatus { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ClusterStatus"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Current phase of the cluster. * */ phase: ClusterStatus_Phase; /** * State reflects substatus of the phase to define whether it's healthy or not. * */ state: ClusterStatus_State; /** * Cluster resource preset details * */ presetDetails?: PresetDetails | undefined; /** * Connection endpoints of the PostgreSQL cluster. * */ connectionEndpoints?: Endpoints | undefined; } /** Encodes, decodes, converts, and creates {@link ClusterStatus} messages. */ export declare const ClusterStatus: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.Endpoints` protobuf message. */ export interface Endpoints { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.Endpoints"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Read write endpoint of the PostgreSQL cluster accessible from the private VPC. * */ privateReadWrite: string; /** * Read only endpoint of the PostgreSQL cluster accessible from the private VPC. * */ privateReadOnly: string; /** * Read write endpoint of the PostgreSQL cluster accessible from the internet. * */ publicReadWrite: string; /** * Read only endpoint of the PostgreSQL cluster accessible from the internet. * */ publicReadOnly: string; } /** Encodes, decodes, converts, and creates {@link Endpoints} messages. */ export declare const Endpoints: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.ConfigSpec` protobuf message. */ export interface ConfigSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.ConfigSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Version of PostgreSQL used in the cluster. * Possible values: `16` * */ version: string; /** * Configuration of the connection pooler. * */ poolerConfig?: ConnectionPoolerConfig | undefined; /** * Either make cluster public accessible or accessible only via private VPC. * */ publicAccess: boolean; /** * Resources allocated to PostgreSQL hosts. * */ template?: TemplateSpec | undefined; /** * Config of the PostgreSQL cluster. * */ config?: { $case: "postgresqlConfig_16"; postgresqlConfig_16: PostgresqlConfig16; } | undefined; } /** Encodes, decodes, converts, and creates {@link ConfigSpec} messages. */ export declare const ConfigSpec: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.BootstrapSpec` protobuf message. */ export interface BootstrapSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.BootstrapSpec"; /** 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 bootstrap PostgreSQL user. * */ userName: string; /** * Password of the bootstrap PostgreSQL user. * */ userPassword: string; /** * Name of the PostgreSQL database. 1-63 characters long. * */ dbName: string; } /** Encodes, decodes, converts, and creates {@link BootstrapSpec} messages. */ export declare const BootstrapSpec: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.BackupSpec` protobuf message. */ export interface BackupSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.BackupSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * Backup window start in "HH:MM:SS" format (UTC Time) * */ backupWindowStart: string; /** * Retention policy to be used for backups and WALs (i.e. '7d') * */ retentionPolicy: string; } /** Encodes, decodes, converts, and creates {@link BackupSpec} messages. */ export declare const BackupSpec: MessageFns; /** Represents the `nebius.msp.postgresql.v1alpha1.TemplateSpec` protobuf message. */ export interface TemplateSpec { /** Contains the fully qualified protobuf type name. */ $type: "nebius.msp.postgresql.v1alpha1.TemplateSpec"; /** Preserves protobuf fields that this SDK version does not recognize. */ [unknownFieldsSymbol]?: Uint8Array | undefined; /** Returns a safe value for JSON logs. */ [customJson]?: () => unknown; /** * reduced msp.v1alpha1.resource.TemplateSpec * */ resources?: ResourcesSpec | undefined; /** Contains the `hosts` protobuf field. */ hosts?: HostSpec | undefined; /** Contains the `disk` protobuf field. */ disk?: DiskSpec | undefined; } /** Encodes, decodes, converts, and creates {@link TemplateSpec} messages. */ export declare const TemplateSpec: MessageFns; //# sourceMappingURL=index.d.ts.map