import _m0 from 'protobufjs/minimal'; import { Format } from '../../../../yandex/cloud/backup/v1/policy'; export declare const protobufPackage = "yandex.cloud.backup.v1"; /** Archive is a container that holds backups of Compute Cloud instance. */ export interface Archive { /** ID of the backup. */ id: string; /** Name of the backup. */ name: string; /** ID of the backup vault. */ vaultId: string; /** Archive attributes. */ attributes?: Archive_ArchiveAttributes; /** Archive size. */ size: number; /** Compressed data size. */ compressedDataSize: number; /** Data size. */ dataSize: number; /** Original data size. */ originalDataSize: number; /** Logical size. */ logicalSize: number; format: Format; createdAt?: Date; updatedAt?: Date; lastBackupCreatedAt?: Date; lastSeenAt?: Date; /** * If this field is true, it means that any of encryption algorithm * has been chosen. */ protectedByPassword: boolean; encryptionAlgorithm: Archive_EncryptionAlgorithm; actions: Archive_Action[]; /** Backup plan ID. */ backupPlanId: string; /** Backup plan name. */ backupPlanName: string; /** Backup plan description. */ description: string; /** Display name, e.g. `INSTANCE_NAME - POLICY_NAME`. */ displayName: string; /** Compute Cloud instance ID. */ computeInstanceId: string; /** If this field is true, it means that the archive is consistent. */ consistent: boolean; /** If this field is true, it means that the archive was deleted. */ deleted: boolean; /** Resource ID. */ resourceId: string; } /** * Encryption Algorithm for underlying backups: * `ENCRYPTION_ALGORITHM_UNSPECIFIED`, `NONE`, `AES128`, `AES192`, * `AES256`. */ export declare enum Archive_EncryptionAlgorithm { ENCRYPTION_ALGORITHM_UNSPECIFIED = 0, NONE = 1, AES128 = 2, AES192 = 3, AES256 = 4, UNRECOGNIZED = -1 } export declare function archive_EncryptionAlgorithmFromJSON(object: any): Archive_EncryptionAlgorithm; export declare function archive_EncryptionAlgorithmToJSON(object: Archive_EncryptionAlgorithm): string; /** * Action with archive backup: `ACTION_UNSPECIFIED`, `REFRESH`, * `DELETE_BY_AGENT`. */ export declare enum Archive_Action { ACTION_UNSPECIFIED = 0, REFRESH = 1, DELETE_BY_AGENT = 2, UNRECOGNIZED = -1 } export declare function archive_ActionFromJSON(object: any): Archive_Action; export declare function archive_ActionToJSON(object: Archive_Action): string; /** Archive attributes. */ export interface Archive_ArchiveAttributes { /** Archive attribute. Default value: `0`. */ aaib: string; /** URI of the backup archive. */ uri: string; } export interface Volume { /** Free space in the volume. */ freeSpace: number; /** If this field is true, it means that the volume is bootable. */ isBootable: boolean; /** If this field is true, it means that the volume is a system volume. */ isSystem: boolean; /** Volume name. */ name: string; /** Volume size. */ size: number; /** Mount string ID. */ mountStrid: string; } export interface Disk { /** Device model. */ deviceModel: string; /** Disk name. */ name: string; /** Disk size. */ size: number; volumes: Volume[]; } export interface Backup { /** ID of the backup. */ id: string; /** ID of the backup vault. */ vaultId: string; /** ID of the backup archive. */ archiveId: string; createdAt?: Date; lastSeenAt?: Date; /** Backup size. */ size: number; /** Deduplicated backup size. */ deduplicatedSize: number; /** Backed up data size. */ backedUpDataSize: number; /** Original data size. */ originalDataSize: number; attributes?: Backup_BackupAttributes; /** Compute Cloud instance ID. */ computeInstanceId: string; disks: Disk[]; type: Backup_Type; /** If this field is true, it means that the backup was deleted. */ deleted: boolean; /** [Policy](/docs/backup/concepts/policy) ID. */ policyId: string; /** Resource ID. It identifies Compute Cloud instance in backup service. */ resourceId: string; } /** * Backup type. * For detailed information, please see [Backup types](/docs/backup/concepts/backup#types). */ export declare enum Backup_Type { TYPE_UNSPECIFIED = 0, FULL = 1, INCREMENTAL = 2, UNRECOGNIZED = -1 } export declare function backup_TypeFromJSON(object: any): Backup_Type; export declare function backup_TypeToJSON(object: Backup_Type): string; /** Backup attributes. */ export interface Backup_BackupAttributes { /** Backup stream name. */ streamName: string; /** URI of the backup archive. */ uri: string; } /** BackupFile represents a single unit of file or directory system inside the backup. */ export interface BackupFile { /** ID of the item. Should be used as source ID in case of listing. */ id: string; /** Might be empty if this is root directory. */ parentId?: string; /** Type of the item. */ type: BackupFile_Type; /** Absolute path of the item. */ fullPath: string; /** Name of the directory / file. */ name: string; /** Size in bytes of the item. */ size: number; /** Actions that might be done on the object. */ actions?: BackupFile_Actions; modifiedAt?: Date; } /** Type of the file. */ export declare enum BackupFile_Type { TYPE_UNSPECIFIED = 0, TYPE_DIR = 1, TYPE_FILE = 2, UNRECOGNIZED = -1 } export declare function backupFile_TypeFromJSON(object: any): BackupFile_Type; export declare function backupFile_TypeToJSON(object: BackupFile_Type): string; export interface BackupFile_Actions { /** Allows to send request to restore item to disk */ restoreToDisk: boolean; /** Allows to move to location by id. */ goToLocation: boolean; } export declare const Archive: { encode(message: Archive, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Archive; fromJSON(object: any): Archive; toJSON(message: Archive): unknown; fromPartial, never>) | undefined; size?: number | undefined; compressedDataSize?: number | undefined; dataSize?: number | undefined; originalDataSize?: number | undefined; logicalSize?: number | undefined; format?: Format | undefined; createdAt?: Date | undefined; updatedAt?: Date | undefined; lastBackupCreatedAt?: Date | undefined; lastSeenAt?: Date | undefined; protectedByPassword?: boolean | undefined; encryptionAlgorithm?: Archive_EncryptionAlgorithm | undefined; actions?: (Archive_Action[] & Archive_Action[] & Record, never>) | undefined; backupPlanId?: string | undefined; backupPlanName?: string | undefined; description?: string | undefined; displayName?: string | undefined; computeInstanceId?: string | undefined; consistent?: boolean | undefined; deleted?: boolean | undefined; resourceId?: string | undefined; } & Record, never>>(object: I): Archive; }; export declare const Archive_ArchiveAttributes: { encode(message: Archive_ArchiveAttributes, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Archive_ArchiveAttributes; fromJSON(object: any): Archive_ArchiveAttributes; toJSON(message: Archive_ArchiveAttributes): unknown; fromPartial, never>>(object: I): Archive_ArchiveAttributes; }; export declare const Volume: { encode(message: Volume, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Volume; fromJSON(object: any): Volume; toJSON(message: Volume): unknown; fromPartial, never>>(object: I): Volume; }; export declare const Disk: { encode(message: Disk, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Disk; fromJSON(object: any): Disk; toJSON(message: Disk): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): Disk; }; export declare const Backup: { encode(message: Backup, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Backup; fromJSON(object: any): Backup; toJSON(message: Backup): unknown; fromPartial, never>) | undefined; computeInstanceId?: string | undefined; disks?: ({ deviceModel?: string | undefined; name?: string | undefined; size?: number | undefined; volumes?: { freeSpace?: number | undefined; isBootable?: boolean | undefined; isSystem?: boolean | undefined; name?: string | undefined; size?: number | undefined; mountStrid?: string | undefined; }[] | undefined; }[] & ({ deviceModel?: string | undefined; name?: string | undefined; size?: number | undefined; volumes?: { freeSpace?: number | undefined; isBootable?: boolean | undefined; isSystem?: boolean | undefined; name?: string | undefined; size?: number | undefined; mountStrid?: string | undefined; }[] | undefined; } & { deviceModel?: string | undefined; name?: string | undefined; size?: number | undefined; volumes?: ({ freeSpace?: number | undefined; isBootable?: boolean | undefined; isSystem?: boolean | undefined; name?: string | undefined; size?: number | undefined; mountStrid?: string | undefined; }[] & ({ freeSpace?: number | undefined; isBootable?: boolean | undefined; isSystem?: boolean | undefined; name?: string | undefined; size?: number | undefined; mountStrid?: string | undefined; } & { freeSpace?: number | undefined; isBootable?: boolean | undefined; isSystem?: boolean | undefined; name?: string | undefined; size?: number | undefined; mountStrid?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; type?: Backup_Type | undefined; deleted?: boolean | undefined; policyId?: string | undefined; resourceId?: string | undefined; } & Record, never>>(object: I): Backup; }; export declare const Backup_BackupAttributes: { encode(message: Backup_BackupAttributes, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Backup_BackupAttributes; fromJSON(object: any): Backup_BackupAttributes; toJSON(message: Backup_BackupAttributes): unknown; fromPartial, never>>(object: I): Backup_BackupAttributes; }; export declare const BackupFile: { encode(message: BackupFile, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BackupFile; fromJSON(object: any): BackupFile; toJSON(message: BackupFile): unknown; fromPartial, never>) | undefined; modifiedAt?: Date | undefined; } & Record, never>>(object: I): BackupFile; }; export declare const BackupFile_Actions: { encode(message: BackupFile_Actions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BackupFile_Actions; fromJSON(object: any): BackupFile_Actions; toJSON(message: BackupFile_Actions): unknown; fromPartial, never>>(object: I): BackupFile_Actions; }; 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 {};