import _m0 from 'protobufjs/minimal'; import { MaintenanceWindow, MaintenanceOperation } from '../../../../yandex/cloud/metastore/v1/maintenance'; import { LogLevel_Level } from '../../../../yandex/cloud/logging/v1/log_entry'; export declare const protobufPackage = "yandex.cloud.metastore.v1"; /** Hive Metastore Cluster. */ export interface Cluster { /** * ID of the Metastore cluster. * This ID is assigned by MDB at creation time. */ id: string; /** ID of the folder that the Metastore cluster belongs to. */ folderId: string; /** Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ createdAt?: Date; /** * Name of the Metastore cluster. * The name is unique within the folder. 1-63 characters long. */ name: string; /** Description of the Metastore cluster. 0-256 characters long. */ description: string; /** * Custom labels for the Metastore cluster as `` key:value `` pairs. * Maximum 64 per resource. */ labels: { [key: string]: string; }; /** Aggregated cluster health. */ health: Cluster_Health; /** Current state of the cluster. */ status: Cluster_Status; /** * Subnet ids to put metastore servers * * @deprecated */ subnetIds: string[]; /** Minimum number of metastore servers per zone */ minServersPerZone: number; /** Maximum number of metastore servers per zone */ maxServersPerZone: number; /** Actual number of metastore servers per zone */ serversPerZone: number; /** * User security groups * * @deprecated */ securityGroupIds: string[]; /** Host groups hosting VMs of the cluster. */ hostGroupIds: string[]; /** Deletion Protection inhibits deletion of the cluster */ deletionProtection: boolean; /** Metastore server version */ version: string; /** Metastore network */ networkId: string; /** IP address of metastore server balancer endpoint */ endpointIp: string; /** Metastore cluster configuration */ clusterConfig?: ClusterConfig; /** Service account that will be used to access a YC resources */ serviceAccountId: string; /** Cloud logging configuration */ logging?: LoggingConfig; /** Network related configuration options. */ network?: NetworkConfig; /** Window of maintenance operations. */ maintenanceWindow?: MaintenanceWindow; /** Maintenance operation planned at nearest maintenance_window. */ plannedOperation?: MaintenanceOperation; } export declare enum Cluster_Health { /** HEALTH_UNKNOWN - State of the cluster is unknown ([Host.health] for every host in the cluster is UNKNOWN). */ HEALTH_UNKNOWN = 0, /** ALIVE - Cluster is alive and well ([Host.health] for every host in the cluster is ALIVE). */ ALIVE = 1, /** DEAD - Cluster is inoperable ([Host.health] for every host in the cluster is DEAD). */ DEAD = 2, /** DEGRADED - Cluster is working below capacity ([Host.health] for at least one host in the cluster is not ALIVE). */ DEGRADED = 3, UNRECOGNIZED = -1 } export declare function cluster_HealthFromJSON(object: any): Cluster_Health; export declare function cluster_HealthToJSON(object: Cluster_Health): string; export declare enum Cluster_Status { /** STATUS_UNKNOWN - Cluster state is unknown. */ STATUS_UNKNOWN = 0, /** CREATING - Cluster is being created. */ CREATING = 1, /** RUNNING - Cluster is running normally. */ RUNNING = 2, /** ERROR - Cluster encountered a problem and cannot operate. */ ERROR = 3, /** UPDATING - Cluster is being updated. */ UPDATING = 4, /** STOPPING - Cluster is stopping. */ STOPPING = 5, /** STOPPED - Cluster stopped. */ STOPPED = 6, /** STARTING - Cluster is starting. */ STARTING = 7, UNRECOGNIZED = -1 } export declare function cluster_StatusFromJSON(object: any): Cluster_Status; export declare function cluster_StatusToJSON(object: Cluster_Status): string; export interface Cluster_LabelsEntry { key: string; value: string; } export interface ClusterConfig { resources?: Resources; } export interface NetworkConfig { /** IDs of VPC network subnets where instances of the cluster are attached. */ subnetIds: string[]; /** User security groups. */ securityGroupIds: string[]; } export interface Resources { /** ID of the preset for computational resources available to a pod (CPU, memory etc.). */ resourcePresetId: string; } export interface LoggingConfig { enabled: boolean; folderId: string | undefined; logGroupId: string | undefined; minLevel: LogLevel_Level; } export declare const Cluster: { encode(message: Cluster, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Cluster; fromJSON(object: any): Cluster; toJSON(message: Cluster): unknown; fromPartial, never>) | undefined; health?: Cluster_Health | undefined; status?: Cluster_Status | undefined; subnetIds?: (string[] & string[] & Record, never>) | undefined; minServersPerZone?: number | undefined; maxServersPerZone?: number | undefined; serversPerZone?: number | undefined; securityGroupIds?: (string[] & string[] & Record, never>) | undefined; hostGroupIds?: (string[] & string[] & Record, never>) | undefined; deletionProtection?: boolean | undefined; version?: string | undefined; networkId?: string | undefined; endpointIp?: string | undefined; clusterConfig?: ({ resources?: { resourcePresetId?: string | undefined; } | undefined; } & { resources?: ({ resourcePresetId?: string | undefined; } & { resourcePresetId?: string | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; serviceAccountId?: string | undefined; logging?: ({ enabled?: boolean | undefined; folderId?: string | undefined; logGroupId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & { enabled?: boolean | undefined; folderId?: string | undefined; logGroupId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & Record, never>) | undefined; network?: ({ subnetIds?: string[] | undefined; securityGroupIds?: string[] | undefined; } & { subnetIds?: (string[] & string[] & Record, never>) | undefined; securityGroupIds?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; maintenanceWindow?: ({ anytime?: {} | undefined; weeklyMaintenanceWindow?: { day?: import("../../../../yandex/cloud/metastore/v1/maintenance").WeeklyMaintenanceWindow_WeekDay | undefined; hour?: number | undefined; } | undefined; } & { anytime?: ({} & {} & Record, never>) | undefined; weeklyMaintenanceWindow?: ({ day?: import("../../../../yandex/cloud/metastore/v1/maintenance").WeeklyMaintenanceWindow_WeekDay | undefined; hour?: number | undefined; } & { day?: import("../../../../yandex/cloud/metastore/v1/maintenance").WeeklyMaintenanceWindow_WeekDay | undefined; hour?: number | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; plannedOperation?: ({ info?: string | undefined; delayedUntil?: Date | undefined; latestMaintenanceTime?: Date | undefined; nextMaintenanceWindowTime?: Date | undefined; } & { info?: string | undefined; delayedUntil?: Date | undefined; latestMaintenanceTime?: Date | undefined; nextMaintenanceWindowTime?: Date | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): Cluster; }; export declare const Cluster_LabelsEntry: { encode(message: Cluster_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Cluster_LabelsEntry; fromJSON(object: any): Cluster_LabelsEntry; toJSON(message: Cluster_LabelsEntry): unknown; fromPartial, never>>(object: I): Cluster_LabelsEntry; }; export declare const ClusterConfig: { encode(message: ClusterConfig, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ClusterConfig; fromJSON(object: any): ClusterConfig; toJSON(message: ClusterConfig): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): ClusterConfig; }; export declare const NetworkConfig: { encode(message: NetworkConfig, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): NetworkConfig; fromJSON(object: any): NetworkConfig; toJSON(message: NetworkConfig): unknown; fromPartial, never>) | undefined; securityGroupIds?: (string[] & string[] & Record, never>) | undefined; } & Record, never>>(object: I): NetworkConfig; }; export declare const Resources: { encode(message: Resources, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Resources; fromJSON(object: any): Resources; toJSON(message: Resources): unknown; fromPartial, never>>(object: I): Resources; }; export declare const LoggingConfig: { encode(message: LoggingConfig, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LoggingConfig; fromJSON(object: any): LoggingConfig; toJSON(message: LoggingConfig): unknown; fromPartial, never>>(object: I): LoggingConfig; }; 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 {};