@yandex-cloud/nodejs-sdk
Version:
Yandex.Cloud NodeJS SDK
74 lines (73 loc) • 3.33 kB
TypeScript
import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "yandex.cloud.mdb.clickhouse.v1";
/**
* A ClickHouse Backup resource. See the [Developer's Guide](/docs/managed-clickhouse/concepts)
* for more information.
*/
export interface Backup {
$type: "yandex.cloud.mdb.clickhouse.v1.Backup";
/** ID of the backup. */
id: string;
/** ID of the folder that the backup belongs to. */
folderId: string;
/**
* Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format
* (i.e. when the backup operation was completed).
*/
createdAt?: Date;
/** ID of the ClickHouse cluster that the backup was created for. */
sourceClusterId: string;
/** Names of the shards included in the backup. */
sourceShardNames: string[];
/** Time when the backup operation was started. */
startedAt?: Date;
/** Size of backup in bytes. */
size: number;
/** How this backup was created (manual/automatic/etc...). */
type: Backup_BackupType;
}
export declare enum Backup_BackupType {
BACKUP_TYPE_UNSPECIFIED = 0,
/** AUTOMATED - Backup created by automated daily schedule. */
AUTOMATED = 1,
/** MANUAL - Backup created by user request. */
MANUAL = 2,
UNRECOGNIZED = -1
}
export declare function backup_BackupTypeFromJSON(object: any): Backup_BackupType;
export declare function backup_BackupTypeToJSON(object: Backup_BackupType): string;
export declare const Backup: {
$type: "yandex.cloud.mdb.clickhouse.v1.Backup";
encode(message: Backup, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Backup;
fromJSON(object: any): Backup;
toJSON(message: Backup): unknown;
fromPartial<I extends {
id?: string | undefined;
type?: Backup_BackupType | undefined;
createdAt?: Date | undefined;
folderId?: string | undefined;
size?: number | undefined;
startedAt?: Date | undefined;
sourceClusterId?: string | undefined;
sourceShardNames?: string[] | undefined;
} & {
id?: string | undefined;
type?: Backup_BackupType | undefined;
createdAt?: Date | undefined;
folderId?: string | undefined;
size?: number | undefined;
startedAt?: Date | undefined;
sourceClusterId?: string | undefined;
sourceShardNames?: (string[] & string[] & Record<Exclude<keyof I["sourceShardNames"], "$type" | keyof string[]>, never>) | undefined;
} & Record<Exclude<keyof I, "$type" | "id" | "type" | "createdAt" | "folderId" | "size" | "startedAt" | "sourceClusterId" | "sourceShardNames">, never>>(object: I): Backup;
};
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
} : Partial<T>;
declare type KeysOfUnion<T> = T extends T ? keyof T : never;
export declare type Exact<P, I extends P> = P extends Builtin ? P : P & {
[K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P> | "$type">, never>;
export {};