/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Cluster_Environment, Resources, Cluster, Host } from '../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster'; import { FieldMask } from '../../../../../google/protobuf/field_mask'; import { TimeOfDay } from '../../../../../google/type/timeofday'; import { DatabaseSpec } from '../../../../../yandex/cloud/mdb/mysql/v1alpha/database'; import { UserSpec } from '../../../../../yandex/cloud/mdb/mysql/v1alpha/user'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; import { Backup } from '../../../../../yandex/cloud/mdb/mysql/v1alpha/backup'; import { Mysqlconfig57 } from '../../../../../yandex/cloud/mdb/mysql/v1alpha/config/mysql5_7'; export declare const protobufPackage = "yandex.cloud.mdb.mysql.v1alpha"; export interface GetClusterRequest { /** * ID of the MySQL cluster to return. * To get the cluster ID use a [ClusterService.List] request. */ clusterId: string; } export interface ListClustersRequest { /** * ID of the folder to list MySQL clusters in. * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListClustersResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the [ListClustersResponse.next_page_token] * returned by the previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * The expression must specify: * 1. The field name. Currently you can only use filtering with the [Cluster.name] field. * 2. An `=` operator. * 3. The value in double quotes (`"`). Must be 1-63 characters long and match the regular expression `[a-zA-Z0-9_-]+`. */ filter: string; } export interface ListClustersResponse { /** List of MySQL clusters. */ 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; } export interface CreateClusterRequest { /** ID of the folder to create the MySQL cluster in. */ folderId: string; /** Name of the MySQL cluster. The name must be unique within the folder. */ name: string; /** Description of the MySQL cluster. */ description: string; /** * Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource. * For example, "project": "mvp" or "source": "dictionary". */ labels: { [key: string]: string; }; /** Deployment environment of the MySQL cluster. */ environment: Cluster_Environment; /** Configuration and resources for hosts that should be created for the MySQL cluster. */ configSpec?: ConfigSpec; /** Descriptions of databases to be created in the MySQL cluster. */ databaseSpecs: DatabaseSpec[]; /** Descriptions of database users to be created in the MySQL cluster. */ userSpecs: UserSpec[]; /** Individual configurations for hosts that should be created for the MySQL cluster. */ hostSpecs: HostSpec[]; /** ID of the network to create the cluster in. */ networkId: string; } export interface CreateClusterRequest_LabelsEntry { key: string; value: string; } export interface CreateClusterMetadata { /** ID of the MySQL cluster that is being created. */ clusterId: string; } export interface UpdateClusterRequest { /** * ID of the MySQL cluster to update. * To get the MySQL cluster ID, use a [ClusterService.List] request. */ clusterId: string; /** Field mask that specifies which settings of the MySQL cluster should be updated. */ updateMask?: FieldMask; /** New description of the MySQL cluster. */ description: string; /** * Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource. * For example, "project": "mvp" or "source": "dictionary". * * The new set of labels will completely replace the old ones. To add a label, request the current * set with the [ClusterService.Get] method, then send an [ClusterService.Update] request with the new label added to the set. */ labels: { [key: string]: string; }; /** New configuration and resources for hosts in the cluster. */ configSpec?: ConfigSpec; /** New name for the cluster. */ name: string; } export interface UpdateClusterRequest_LabelsEntry { key: string; value: string; } export interface UpdateClusterMetadata { /** ID of the MySQL cluster that is being modified. */ clusterId: string; } export interface DeleteClusterRequest { /** * ID of the MySQL cluster to delete. * To get the MySQL cluster ID, use a [ClusterService.List] request. */ clusterId: string; } export interface DeleteClusterMetadata { /** ID of the MySQL cluster that is being deleted. */ clusterId: string; } export interface BackupClusterRequest { /** * ID of the MySQL cluster to back up. * To get the MySQL cluster ID, use a [ClusterService.List] request. */ clusterId: string; } export interface BackupClusterMetadata { /** ID of the MySQL cluster that is being backed up. */ clusterId: string; } export interface RestoreClusterRequest { /** * ID of the backup to create a cluster from. * To get the backup ID, use a [ClusterService.ListBackups] request. */ backupId: string; /** Timestamp of the moment to which the MySQL cluster should be restored. */ time?: Date; /** Name of the new MySQL cluster. The name must be unique within the folder. */ name: string; /** Description of the new MySQL cluster. */ description: string; /** * Custom labels for the MySQL cluster as `key:value` pairs. Maximum 64 per resource. * For example, "project": "mvp" or "source": "dictionary". */ labels: { [key: string]: string; }; /** Deployment environment of the new MySQL cluster. */ environment: Cluster_Environment; /** Configuration for the MySQL cluster to be created. */ configSpec?: ConfigSpec; /** * Configurations for MySQL hosts that should be added * to the cluster that is being created from the backup. */ hostSpecs: HostSpec[]; /** ID of the network to create the MySQL cluster in. */ networkId: string; } export interface RestoreClusterRequest_LabelsEntry { key: string; value: string; } export interface RestoreClusterMetadata { /** ID of the new MySQL cluster that is being created from a backup. */ clusterId: string; /** ID of the backup that is being used for creating a cluster. */ backupId: string; } export interface LogRecord { /** Log record timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ timestamp?: Date; /** Contents of the log record. */ message: { [key: string]: string; }; } export interface LogRecord_MessageEntry { key: string; value: string; } export interface ListClusterLogsRequest { /** * ID of the MySQL cluster to request logs for. * To get the MySQL cluster ID use a [ClusterService.List] request. */ clusterId: string; /** * Columns from the logs table to request. * If no columns are specified, entire log records are returned. */ columnFilter: string[]; /** Type of the service to request logs about. */ serviceType: ListClusterLogsRequest_ServiceType; /** Start timestamp for the logs request. */ fromTime?: Date; /** End timestamp for the logs request. */ toTime?: Date; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListClusterLogsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the * [ListClusterLogsResponse.next_page_token] returned by the previous list request. */ pageToken: string; /** Always return `next_page_token`, even if current page is empty. */ alwaysNextPageToken: boolean; } export declare enum ListClusterLogsRequest_ServiceType { SERVICE_TYPE_UNSPECIFIED = 0, /** MYSQL - Logs of MySQL activity. */ MYSQL = 1, UNRECOGNIZED = -1 } export declare function listClusterLogsRequest_ServiceTypeFromJSON(object: any): ListClusterLogsRequest_ServiceType; export declare function listClusterLogsRequest_ServiceTypeToJSON(object: ListClusterLogsRequest_ServiceType): string; export interface ListClusterLogsResponse { /** Requested log records. */ logs: LogRecord[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListClusterLogsRequest.page_size], use the [next_page_token] as the value * for the [ListClusterLogsRequest.page_token] query 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; } export interface ListClusterOperationsRequest { /** ID of the MySQL cluster to list operations for. */ clusterId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListClusterOperationsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the [ListClusterOperationsResponse.next_page_token] * returned by the previous list request. */ pageToken: string; } export interface ListClusterOperationsResponse { /** List of operations for the specified MySQL cluster. */ operations: Operation[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListClusterOperationsRequest.page_size], use the [next_page_token] as the value * for the [ListClusterOperationsRequest.page_token] query 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; } export interface ListClusterBackupsRequest { /** * ID of the MySQL cluster. * To get the MySQL cluster ID use a [ClusterService.List] request. */ clusterId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListClusterBackupsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the [ListClusterBackupsResponse.next_page_token] * returned by the previous list request. */ pageToken: string; } export interface ListClusterBackupsResponse { /** List of MySQL backups. */ backups: Backup[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListClusterBackupsRequest.page_size], use the [next_page_token] as the value * for the [ListClusterBackupsRequest.page_token] query 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; } export interface ListClusterHostsRequest { /** * ID of the MySQL cluster. * To get the MySQL cluster ID use a [ClusterService.List] request. */ clusterId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListClusterHostsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the [ListClusterHostsResponse.next_page_token] * returned by the previous list request. */ pageToken: string; } export interface ListClusterHostsResponse { /** List of MySQL hosts. */ hosts: Host[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListClusterHostsRequest.page_size], use the [next_page_token] as the value * for the [ListClusterHostsRequest.page_token] query 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; } export interface AddClusterHostsRequest { /** * ID of the MySQL cluster to add hosts to. * To get the MySQL cluster ID, use a [ClusterService.List] request. */ clusterId: string; /** Configurations for MySQL hosts that should be added to the cluster. */ hostSpecs: HostSpec[]; } export interface AddClusterHostsMetadata { /** ID of the MySQL cluster to which the hosts are being added. */ clusterId: string; /** Names of hosts that are being added to the cluster. */ hostNames: string[]; } export interface DeleteClusterHostsRequest { /** * ID of the MySQL cluster to remove hosts from. * To get the MySQL cluster ID, use a [ClusterService.List] request. */ clusterId: string; /** Names of hosts to delete. */ hostNames: string[]; } export interface DeleteClusterHostsMetadata { /** ID of the MySQL cluster to remove hosts from. */ clusterId: string; /** Names of hosts that are being deleted. */ hostNames: string[]; } export interface StartClusterRequest { /** ID of the MySQL cluster to start. */ clusterId: string; } export interface StartClusterMetadata { /** ID of the MySQL cluster being started. */ clusterId: string; } export interface StopClusterRequest { /** ID of the MySQL cluster to stop. */ clusterId: string; } export interface StopClusterMetadata { /** ID of the MySQL cluster being stopped. */ clusterId: string; } export interface UpdateClusterHostsMetadata { /** ID of the MySQL cluster to modify hosts in. */ clusterId: string; /** Names of hosts that are being modified. */ hostNames: string[]; } export interface HostSpec { /** * ID of the availability zone where the host resides. * To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request. */ zoneId: string; /** * ID of the subnet that the host should belong to. This subnet should be a part * of the network that the cluster belongs to. * The ID of the network is set in the field [Cluster.network_id]. */ subnetId: string; /** * Whether the host should get a public IP address on creation. * * After a host has been created, this setting cannot be changed. To remove an assigned public IP, or to assign * a public IP to a host without one, recreate the host with [assign_public_ip] set as needed. * * Possible values: * * false - don't assign a public IP to the host. * * true - the host should have a public IP address. */ assignPublicIp: boolean; } export interface ConfigSpec { /** * Version of MySQL used in the cluster. * Possible values: * * 5.7 */ version: string; /** Configuration for a MySQL 5.7 cluster. */ mysqlConfig57?: Mysqlconfig57 | undefined; /** Resources allocated to MySQL hosts. */ resources?: Resources; /** Time to start the daily backup, in the UTC timezone. */ backupWindowStart?: TimeOfDay; } export declare const GetClusterRequest: { encode(message: GetClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetClusterRequest; fromJSON(object: any): GetClusterRequest; toJSON(message: GetClusterRequest): unknown; fromPartial, never>>(object: I): GetClusterRequest; }; export declare const ListClustersRequest: { encode(message: ListClustersRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClustersRequest; fromJSON(object: any): ListClustersRequest; toJSON(message: ListClustersRequest): unknown; fromPartial, never>>(object: I): ListClustersRequest; }; export declare const ListClustersResponse: { encode(message: ListClustersResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClustersResponse; fromJSON(object: any): ListClustersResponse; toJSON(message: ListClustersResponse): unknown; fromPartial, never>) | undefined; environment?: Cluster_Environment | undefined; monitoring?: ({ name?: string | undefined; description?: string | undefined; link?: string | undefined; }[] & ({ name?: string | undefined; description?: string | undefined; link?: string | undefined; } & { name?: string | undefined; description?: string | undefined; link?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; config?: ({ version?: string | undefined; mysqlConfig57?: { effectiveConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; userConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; defaultConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; } | undefined; resources?: { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } | undefined; backupWindowStart?: { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } | undefined; } & { version?: string | undefined; mysqlConfig57?: ({ effectiveConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; userConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; defaultConfig?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; } & { effectiveConfig?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; userConfig?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; defaultConfig?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; resources?: ({ resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & Record, never>) | undefined; backupWindowStart?: ({ hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; networkId?: string | undefined; health?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Cluster_Health | undefined; status?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Cluster_Status | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListClustersResponse; }; export declare const CreateClusterRequest: { encode(message: CreateClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateClusterRequest; fromJSON(object: any): CreateClusterRequest; toJSON(message: CreateClusterRequest): unknown; fromPartial, never>) | undefined; environment?: Cluster_Environment | undefined; configSpec?: ({ version?: string | undefined; mysqlConfig57?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; resources?: { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } | undefined; backupWindowStart?: { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } | undefined; } & { version?: string | undefined; mysqlConfig57?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; resources?: ({ resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & Record, never>) | undefined; backupWindowStart?: ({ hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; databaseSpecs?: ({ name?: string | undefined; }[] & ({ name?: string | undefined; } & { name?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; userSpecs?: ({ name?: string | undefined; password?: string | undefined; permissions?: { databaseName?: string | undefined; roles?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] | undefined; }[] | undefined; }[] & ({ name?: string | undefined; password?: string | undefined; permissions?: { databaseName?: string | undefined; roles?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] | undefined; }[] | undefined; } & { name?: string | undefined; password?: string | undefined; permissions?: ({ databaseName?: string | undefined; roles?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] | undefined; }[] & ({ databaseName?: string | undefined; roles?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] | undefined; } & { databaseName?: string | undefined; roles?: (import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] & import("../../../../../yandex/cloud/mdb/mysql/v1alpha/user").Permission_Privilege[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; hostSpecs?: ({ zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; }[] & ({ zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; } & { zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; networkId?: string | undefined; } & Record, never>>(object: I): CreateClusterRequest; }; export declare const CreateClusterRequest_LabelsEntry: { encode(message: CreateClusterRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateClusterRequest_LabelsEntry; fromJSON(object: any): CreateClusterRequest_LabelsEntry; toJSON(message: CreateClusterRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateClusterRequest_LabelsEntry; }; export declare const CreateClusterMetadata: { encode(message: CreateClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateClusterMetadata; fromJSON(object: any): CreateClusterMetadata; toJSON(message: CreateClusterMetadata): unknown; fromPartial, never>>(object: I): CreateClusterMetadata; }; export declare const UpdateClusterRequest: { encode(message: UpdateClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateClusterRequest; fromJSON(object: any): UpdateClusterRequest; toJSON(message: UpdateClusterRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; description?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; configSpec?: ({ version?: string | undefined; mysqlConfig57?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; resources?: { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } | undefined; backupWindowStart?: { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } | undefined; } & { version?: string | undefined; mysqlConfig57?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; resources?: ({ resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & Record, never>) | undefined; backupWindowStart?: ({ hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; } & Record, never>>(object: I): UpdateClusterRequest; }; export declare const UpdateClusterRequest_LabelsEntry: { encode(message: UpdateClusterRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateClusterRequest_LabelsEntry; fromJSON(object: any): UpdateClusterRequest_LabelsEntry; toJSON(message: UpdateClusterRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateClusterRequest_LabelsEntry; }; export declare const UpdateClusterMetadata: { encode(message: UpdateClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateClusterMetadata; fromJSON(object: any): UpdateClusterMetadata; toJSON(message: UpdateClusterMetadata): unknown; fromPartial, never>>(object: I): UpdateClusterMetadata; }; export declare const DeleteClusterRequest: { encode(message: DeleteClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteClusterRequest; fromJSON(object: any): DeleteClusterRequest; toJSON(message: DeleteClusterRequest): unknown; fromPartial, never>>(object: I): DeleteClusterRequest; }; export declare const DeleteClusterMetadata: { encode(message: DeleteClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteClusterMetadata; fromJSON(object: any): DeleteClusterMetadata; toJSON(message: DeleteClusterMetadata): unknown; fromPartial, never>>(object: I): DeleteClusterMetadata; }; export declare const BackupClusterRequest: { encode(message: BackupClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BackupClusterRequest; fromJSON(object: any): BackupClusterRequest; toJSON(message: BackupClusterRequest): unknown; fromPartial, never>>(object: I): BackupClusterRequest; }; export declare const BackupClusterMetadata: { encode(message: BackupClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BackupClusterMetadata; fromJSON(object: any): BackupClusterMetadata; toJSON(message: BackupClusterMetadata): unknown; fromPartial, never>>(object: I): BackupClusterMetadata; }; export declare const RestoreClusterRequest: { encode(message: RestoreClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RestoreClusterRequest; fromJSON(object: any): RestoreClusterRequest; toJSON(message: RestoreClusterRequest): unknown; fromPartial, never>) | undefined; environment?: Cluster_Environment | undefined; configSpec?: ({ version?: string | undefined; mysqlConfig57?: { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } | undefined; resources?: { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } | undefined; backupWindowStart?: { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } | undefined; } & { version?: string | undefined; mysqlConfig57?: ({ innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & { innodbBufferPoolSize?: number | undefined; maxConnections?: number | undefined; longQueryTime?: number | undefined; } & Record, never>) | undefined; resources?: ({ resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & Record, never>) | undefined; backupWindowStart?: ({ hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; hostSpecs?: ({ zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; }[] & ({ zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; } & { zoneId?: string | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; networkId?: string | undefined; } & Record, never>>(object: I): RestoreClusterRequest; }; export declare const RestoreClusterRequest_LabelsEntry: { encode(message: RestoreClusterRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RestoreClusterRequest_LabelsEntry; fromJSON(object: any): RestoreClusterRequest_LabelsEntry; toJSON(message: RestoreClusterRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): RestoreClusterRequest_LabelsEntry; }; export declare const RestoreClusterMetadata: { encode(message: RestoreClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RestoreClusterMetadata; fromJSON(object: any): RestoreClusterMetadata; toJSON(message: RestoreClusterMetadata): unknown; fromPartial, never>>(object: I): RestoreClusterMetadata; }; export declare const LogRecord: { encode(message: LogRecord, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LogRecord; fromJSON(object: any): LogRecord; toJSON(message: LogRecord): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): LogRecord; }; export declare const LogRecord_MessageEntry: { encode(message: LogRecord_MessageEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LogRecord_MessageEntry; fromJSON(object: any): LogRecord_MessageEntry; toJSON(message: LogRecord_MessageEntry): unknown; fromPartial, never>>(object: I): LogRecord_MessageEntry; }; export declare const ListClusterLogsRequest: { encode(message: ListClusterLogsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterLogsRequest; fromJSON(object: any): ListClusterLogsRequest; toJSON(message: ListClusterLogsRequest): unknown; fromPartial, never>) | undefined; serviceType?: ListClusterLogsRequest_ServiceType | undefined; fromTime?: Date | undefined; toTime?: Date | undefined; pageSize?: number | undefined; pageToken?: string | undefined; alwaysNextPageToken?: boolean | undefined; } & Record, never>>(object: I): ListClusterLogsRequest; }; export declare const ListClusterLogsResponse: { encode(message: ListClusterLogsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterLogsResponse; fromJSON(object: any): ListClusterLogsResponse; toJSON(message: ListClusterLogsResponse): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListClusterLogsResponse; }; export declare const ListClusterOperationsRequest: { encode(message: ListClusterOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterOperationsRequest; fromJSON(object: any): ListClusterOperationsRequest; toJSON(message: ListClusterOperationsRequest): unknown; fromPartial, never>>(object: I): ListClusterOperationsRequest; }; export declare const ListClusterOperationsResponse: { encode(message: ListClusterOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterOperationsResponse; fromJSON(object: any): ListClusterOperationsResponse; toJSON(message: ListClusterOperationsResponse): unknown; fromPartial, never>) | undefined; error?: ({ code?: number | undefined; message?: string | undefined; details?: { typeUrl?: string | undefined; value?: Buffer | undefined; }[] | undefined; } & { code?: number | undefined; message?: string | undefined; details?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; }[] & ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; response?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListClusterOperationsResponse; }; export declare const ListClusterBackupsRequest: { encode(message: ListClusterBackupsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterBackupsRequest; fromJSON(object: any): ListClusterBackupsRequest; toJSON(message: ListClusterBackupsRequest): unknown; fromPartial, never>>(object: I): ListClusterBackupsRequest; }; export declare const ListClusterBackupsResponse: { encode(message: ListClusterBackupsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterBackupsResponse; fromJSON(object: any): ListClusterBackupsResponse; toJSON(message: ListClusterBackupsResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListClusterBackupsResponse; }; export declare const ListClusterHostsRequest: { encode(message: ListClusterHostsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterHostsRequest; fromJSON(object: any): ListClusterHostsRequest; toJSON(message: ListClusterHostsRequest): unknown; fromPartial, never>>(object: I): ListClusterHostsRequest; }; export declare const ListClusterHostsResponse: { encode(message: ListClusterHostsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListClusterHostsResponse; fromJSON(object: any): ListClusterHostsResponse; toJSON(message: ListClusterHostsResponse): unknown; fromPartial, never>) | undefined; role?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Host_Role | undefined; health?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Host_Health | undefined; services?: ({ type?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Type | undefined; health?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Health | undefined; }[] & ({ type?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Type | undefined; health?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Health | undefined; } & { type?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Type | undefined; health?: import("../../../../../yandex/cloud/mdb/mysql/v1alpha/cluster").Service_Health | undefined; } & Record, never>)[] & Record, never>) | undefined; subnetId?: string | undefined; assignPublicIp?: boolean | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListClusterHostsResponse; }; export declare const AddClusterHostsRequest: { encode(message: AddClusterHostsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AddClusterHostsRequest; fromJSON(object: any): AddClusterHostsRequest; toJSON(message: AddClusterHostsRequest): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): AddClusterHostsRequest; }; export declare const AddClusterHostsMetadata: { encode(message: AddClusterHostsMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AddClusterHostsMetadata; fromJSON(object: any): AddClusterHostsMetadata; toJSON(message: AddClusterHostsMetadata): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): AddClusterHostsMetadata; }; export declare const DeleteClusterHostsRequest: { encode(message: DeleteClusterHostsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteClusterHostsRequest; fromJSON(object: any): DeleteClusterHostsRequest; toJSON(message: DeleteClusterHostsRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): DeleteClusterHostsRequest; }; export declare const DeleteClusterHostsMetadata: { encode(message: DeleteClusterHostsMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteClusterHostsMetadata; fromJSON(object: any): DeleteClusterHostsMetadata; toJSON(message: DeleteClusterHostsMetadata): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): DeleteClusterHostsMetadata; }; export declare const StartClusterRequest: { encode(message: StartClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StartClusterRequest; fromJSON(object: any): StartClusterRequest; toJSON(message: StartClusterRequest): unknown; fromPartial, never>>(object: I): StartClusterRequest; }; export declare const StartClusterMetadata: { encode(message: StartClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StartClusterMetadata; fromJSON(object: any): StartClusterMetadata; toJSON(message: StartClusterMetadata): unknown; fromPartial, never>>(object: I): StartClusterMetadata; }; export declare const StopClusterRequest: { encode(message: StopClusterRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StopClusterRequest; fromJSON(object: any): StopClusterRequest; toJSON(message: StopClusterRequest): unknown; fromPartial, never>>(object: I): StopClusterRequest; }; export declare const StopClusterMetadata: { encode(message: StopClusterMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StopClusterMetadata; fromJSON(object: any): StopClusterMetadata; toJSON(message: StopClusterMetadata): unknown; fromPartial, never>>(object: I): StopClusterMetadata; }; export declare const UpdateClusterHostsMetadata: { encode(message: UpdateClusterHostsMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateClusterHostsMetadata; fromJSON(object: any): UpdateClusterHostsMetadata; toJSON(message: UpdateClusterHostsMetadata): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): UpdateClusterHostsMetadata; }; export declare const HostSpec: { encode(message: HostSpec, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): HostSpec; fromJSON(object: any): HostSpec; toJSON(message: HostSpec): unknown; fromPartial, never>>(object: I): HostSpec; }; export declare const ConfigSpec: { encode(message: ConfigSpec, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConfigSpec; fromJSON(object: any): ConfigSpec; toJSON(message: ConfigSpec): unknown; fromPartial, never>) | undefined; resources?: ({ resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & { resourcePresetId?: string | undefined; diskSize?: number | undefined; diskTypeId?: string | undefined; } & Record, never>) | undefined; backupWindowStart?: ({ hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & { hours?: number | undefined; minutes?: number | undefined; seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): ConfigSpec; }; /** A set of methods for managing MySQL clusters. */ export declare const ClusterServiceService: { /** * Returns the specified MySQL cluster. * * To get the list of available MySQL clusters, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetClusterRequest; readonly responseSerialize: (value: Cluster) => Buffer; readonly responseDeserialize: (value: Buffer) => Cluster; }; /** Retrieves the list of MySQL clusters that belong to the specified folder. */ readonly list: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClustersRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListClustersRequest; readonly responseSerialize: (value: ListClustersResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClustersResponse; }; /** Creates a MySQL cluster in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Modifies the specified MySQL cluster. */ readonly update: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified MySQL cluster. */ readonly delete: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Starts the specified MySQL cluster. */ readonly start: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Start"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StartClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => StartClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Stops the specified MySQL cluster. */ readonly stop: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Stop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: StopClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => StopClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Creates a backup for the specified MySQL cluster. */ readonly backup: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Backup"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: BackupClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => BackupClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Creates a new MySQL cluster using the specified backup. */ readonly restore: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/Restore"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RestoreClusterRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RestoreClusterRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Retrieves logs for the specified MySQL cluster. */ readonly listLogs: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListLogs"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClusterLogsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListClusterLogsRequest; readonly responseSerialize: (value: ListClusterLogsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClusterLogsResponse; }; /** Retrieves the list of operations for the specified MySQL cluster. */ readonly listOperations: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClusterOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListClusterOperationsRequest; readonly responseSerialize: (value: ListClusterOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClusterOperationsResponse; }; /** Retrieves the list of available backups for the specified MySQL cluster. */ readonly listBackups: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListBackups"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClusterBackupsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListClusterBackupsRequest; readonly responseSerialize: (value: ListClusterBackupsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClusterBackupsResponse; }; /** Retrieves a list of hosts for the specified MySQL cluster. */ readonly listHosts: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/ListHosts"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListClusterHostsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListClusterHostsRequest; readonly responseSerialize: (value: ListClusterHostsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListClusterHostsResponse; }; /** Creates new hosts for a cluster. */ readonly addHosts: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/AddHosts"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AddClusterHostsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AddClusterHostsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified hosts for a cluster. */ readonly deleteHosts: { readonly path: "/yandex.cloud.mdb.mysql.v1alpha.ClusterService/DeleteHosts"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteClusterHostsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteClusterHostsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface ClusterServiceServer extends UntypedServiceImplementation { /** * Returns the specified MySQL cluster. * * To get the list of available MySQL clusters, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of MySQL clusters that belong to the specified folder. */ list: handleUnaryCall; /** Creates a MySQL cluster in the specified folder. */ create: handleUnaryCall; /** Modifies the specified MySQL cluster. */ update: handleUnaryCall; /** Deletes the specified MySQL cluster. */ delete: handleUnaryCall; /** Starts the specified MySQL cluster. */ start: handleUnaryCall; /** Stops the specified MySQL cluster. */ stop: handleUnaryCall; /** Creates a backup for the specified MySQL cluster. */ backup: handleUnaryCall; /** Creates a new MySQL cluster using the specified backup. */ restore: handleUnaryCall; /** Retrieves logs for the specified MySQL cluster. */ listLogs: handleUnaryCall; /** Retrieves the list of operations for the specified MySQL cluster. */ listOperations: handleUnaryCall; /** Retrieves the list of available backups for the specified MySQL cluster. */ listBackups: handleUnaryCall; /** Retrieves a list of hosts for the specified MySQL cluster. */ listHosts: handleUnaryCall; /** Creates new hosts for a cluster. */ addHosts: handleUnaryCall; /** Deletes the specified hosts for a cluster. */ deleteHosts: handleUnaryCall; } export interface ClusterServiceClient extends Client { /** * Returns the specified MySQL cluster. * * To get the list of available MySQL clusters, make a [List] request. */ get(request: GetClusterRequest, callback: (error: ServiceError | null, response: Cluster) => void): ClientUnaryCall; get(request: GetClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Cluster) => void): ClientUnaryCall; get(request: GetClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Cluster) => void): ClientUnaryCall; /** Retrieves the list of MySQL clusters that belong to the specified folder. */ list(request: ListClustersRequest, callback: (error: ServiceError | null, response: ListClustersResponse) => void): ClientUnaryCall; list(request: ListClustersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListClustersResponse) => void): ClientUnaryCall; list(request: ListClustersRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListClustersResponse) => void): ClientUnaryCall; /** Creates a MySQL cluster in the specified folder. */ create(request: CreateClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Modifies the specified MySQL cluster. */ update(request: UpdateClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified MySQL cluster. */ delete(request: DeleteClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Starts the specified MySQL cluster. */ start(request: StartClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; start(request: StartClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; start(request: StartClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Stops the specified MySQL cluster. */ stop(request: StopClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; stop(request: StopClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; stop(request: StopClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Creates a backup for the specified MySQL cluster. */ backup(request: BackupClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; backup(request: BackupClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; backup(request: BackupClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Creates a new MySQL cluster using the specified backup. */ restore(request: RestoreClusterRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; restore(request: RestoreClusterRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; restore(request: RestoreClusterRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Retrieves logs for the specified MySQL cluster. */ listLogs(request: ListClusterLogsRequest, callback: (error: ServiceError | null, response: ListClusterLogsResponse) => void): ClientUnaryCall; listLogs(request: ListClusterLogsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListClusterLogsResponse) => void): ClientUnaryCall; listLogs(request: ListClusterLogsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListClusterLogsResponse) => void): ClientUnaryCall; /** Retrieves the list of operations for the specified MySQL cluster. */ listOperations(request: ListClusterOperationsRequest, callback: (error: ServiceError | null, response: ListClusterOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListClusterOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListClusterOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListClusterOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListClusterOperationsResponse) => void): ClientUnaryCall; /** Retrieves the list of available backups for the specified MySQL cluster. */ listBackups(request: ListClusterBackupsRequest, callback: (error: ServiceError | null, response: ListClusterBackupsResponse) => void): ClientUnaryCall; listBackups(request: ListClusterBackupsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListClusterBackupsResponse) => void): ClientUnaryCall; listBackups(request: ListClusterBackupsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListClusterBackupsResponse) => void): ClientUnaryCall; /** Retrieves a list of hosts for the specified MySQL cluster. */ listHosts(request: ListClusterHostsRequest, callback: (error: ServiceError | null, response: ListClusterHostsResponse) => void): ClientUnaryCall; listHosts(request: ListClusterHostsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListClusterHostsResponse) => void): ClientUnaryCall; listHosts(request: ListClusterHostsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListClusterHostsResponse) => void): ClientUnaryCall; /** Creates new hosts for a cluster. */ addHosts(request: AddClusterHostsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; addHosts(request: AddClusterHostsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; addHosts(request: AddClusterHostsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified hosts for a cluster. */ deleteHosts(request: DeleteClusterHostsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteHosts(request: DeleteClusterHostsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; deleteHosts(request: DeleteClusterHostsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const ClusterServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ClusterServiceClient; service: typeof ClusterServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};