import _m0 from 'protobufjs/minimal'; import { HardwareGeneration } from '../../../../yandex/cloud/compute/v1/hardware_generation'; import { KMSKey } from '../../../../yandex/cloud/compute/v1/kek'; export declare const protobufPackage = "yandex.cloud.compute.v1"; /** A Snapshot resource. For more information, see [Snapshots](/docs/compute/concepts/snapshot). */ export interface Snapshot { /** ID of the snapshot. */ id: string; /** ID of the folder that the snapshot belongs to. */ folderId: string; createdAt?: Date; /** Name of the snapshot. 1-63 characters long. */ name: string; /** Description of the snapshot. 0-256 characters long. */ description: string; /** Resource labels as `key:value` pairs. Maximum of 64 per resource. */ labels: { [key: string]: string; }; /** Size of the snapshot, specified in bytes. */ storageSize: number; /** Size of the disk when the snapshot was created, specified in bytes. */ diskSize: number; /** * License IDs that indicate which licenses are attached to this resource. * License IDs are used to calculate additional charges for the use of the virtual machine. * * The correct license ID is generated by the platform. IDs are inherited by new resources created from this resource. * * If you know the license IDs, specify them when you create the image. * For example, if you create a disk image using a third-party utility and load it into Object Storage, the license IDs will be lost. * You can specify them in the [yandex.cloud.compute.v1.ImageService.Create] request. */ productIds: string[]; /** Current status of the snapshot. */ status: Snapshot_Status; /** ID of the source disk used to create this snapshot. */ sourceDiskId: string; /** * If specified, forces the same HardwareGeneration features to be applied to the instance * created using this snapshot as source for the boot disk. Otherwise the current default will be used. */ hardwareGeneration?: HardwareGeneration; /** Key encryption key info. */ kmsKey?: KMSKey; } export declare enum Snapshot_Status { STATUS_UNSPECIFIED = 0, /** CREATING - Snapshot is being created. */ CREATING = 1, /** READY - Snapshot is ready to use. */ READY = 2, /** ERROR - Snapshot encountered a problem and cannot operate. */ ERROR = 3, /** DELETING - Snapshot is being deleted. */ DELETING = 4, UNRECOGNIZED = -1 } export declare function snapshot_StatusFromJSON(object: any): Snapshot_Status; export declare function snapshot_StatusToJSON(object: Snapshot_Status): string; export interface Snapshot_LabelsEntry { key: string; value: string; } export declare const Snapshot: { encode(message: Snapshot, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot; fromJSON(object: any): Snapshot; toJSON(message: Snapshot): unknown; fromPartial, never>) | undefined; storageSize?: number | undefined; diskSize?: number | undefined; productIds?: (string[] & string[] & Record, never>) | undefined; status?: Snapshot_Status | undefined; sourceDiskId?: string | undefined; hardwareGeneration?: ({ legacyFeatures?: { pciTopology?: import("../../../../yandex/cloud/compute/v1/hardware_generation").PCITopology | undefined; } | undefined; generation2Features?: {} | undefined; } & { legacyFeatures?: ({ pciTopology?: import("../../../../yandex/cloud/compute/v1/hardware_generation").PCITopology | undefined; } & { pciTopology?: import("../../../../yandex/cloud/compute/v1/hardware_generation").PCITopology | undefined; } & Record, never>) | undefined; generation2Features?: ({} & {} & Record, never>) | undefined; } & Record, never>) | undefined; kmsKey?: ({ keyId?: string | undefined; versionId?: string | undefined; } & { keyId?: string | undefined; versionId?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): Snapshot; }; export declare const Snapshot_LabelsEntry: { encode(message: Snapshot_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Snapshot_LabelsEntry; fromJSON(object: any): Snapshot_LabelsEntry; toJSON(message: Snapshot_LabelsEntry): unknown; fromPartial, never>>(object: I): Snapshot_LabelsEntry; }; 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 {};