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 Disk resource. For more information, see [Disks](/docs/compute/concepts/disk). */
export interface Disk {
    /** ID of the disk. */
    id: string;
    /** ID of the folder that the disk belongs to. */
    folderId: string;
    createdAt?: Date;
    /** Name of the disk. 1-63 characters long. */
    name: string;
    /** Description of the disk. 0-256 characters long. */
    description: string;
    /** Resource labels as `key:value` pairs. Maximum of 64 per resource. */
    labels: {
        [key: string]: string;
    };
    /** ID of the disk type. */
    typeId: string;
    /** ID of the availability zone where the disk resides. */
    zoneId: string;
    /** Size of the disk, specified in bytes. */
    size: number;
    /** Block size of the disk, specified in bytes. */
    blockSize: 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 disk. */
    status: Disk_Status;
    /** ID of the image that was used for disk creation. */
    sourceImageId: string | undefined;
    /** ID of the snapshot that was used for disk creation. */
    sourceSnapshotId: string | undefined;
    /** Array of instances to which the disk is attached. */
    instanceIds: string[];
    /** Placement policy configuration. */
    diskPlacementPolicy?: DiskPlacementPolicy;
    /**
     * If specified, forces the same HardwareGeneration features to be applied to the instance
     * created using this disk as a boot one. Otherwise the current default will be used.
     */
    hardwareGeneration?: HardwareGeneration;
    /** Key encryption key info. */
    kmsKey?: KMSKey;
}
export declare enum Disk_Status {
    STATUS_UNSPECIFIED = 0,
    /** CREATING - Disk is being created. */
    CREATING = 1,
    /** READY - Disk is ready to use. */
    READY = 2,
    /** ERROR - Disk encountered a problem and cannot operate. */
    ERROR = 3,
    /** DELETING - Disk is being deleted. */
    DELETING = 4,
    UNRECOGNIZED = -1
}
export declare function disk_StatusFromJSON(object: any): Disk_Status;
export declare function disk_StatusToJSON(object: Disk_Status): string;
export interface Disk_LabelsEntry {
    key: string;
    value: string;
}
export interface DiskPlacementPolicy {
    /** Placement group ID. */
    placementGroupId: string;
    placementGroupPartition: number;
}
export interface DiskPlacementPolicyChange {
    /** Disk ID. */
    diskId: string;
    /** Placement policy configuration for given disk. */
    diskPlacementPolicy?: DiskPlacementPolicy;
}
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<I extends {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        typeId?: string | undefined;
        zoneId?: string | undefined;
        size?: number | undefined;
        blockSize?: number | undefined;
        productIds?: string[] | undefined;
        status?: Disk_Status | undefined;
        sourceImageId?: string | undefined;
        sourceSnapshotId?: string | undefined;
        instanceIds?: string[] | undefined;
        diskPlacementPolicy?: {
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } | undefined;
        hardwareGeneration?: {
            legacyFeatures?: {
                pciTopology?: import("../../../../yandex/cloud/compute/v1/hardware_generation").PCITopology | undefined;
            } | undefined;
            generation2Features?: {} | undefined;
        } | undefined;
        kmsKey?: {
            keyId?: string | undefined;
            versionId?: string | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        typeId?: string | undefined;
        zoneId?: string | undefined;
        size?: number | undefined;
        blockSize?: number | undefined;
        productIds?: (string[] & string[] & Record<Exclude<keyof I["productIds"], keyof string[]>, never>) | undefined;
        status?: Disk_Status | undefined;
        sourceImageId?: string | undefined;
        sourceSnapshotId?: string | undefined;
        instanceIds?: (string[] & string[] & Record<Exclude<keyof I["instanceIds"], keyof string[]>, never>) | undefined;
        diskPlacementPolicy?: ({
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } & {
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } & Record<Exclude<keyof I["diskPlacementPolicy"], keyof DiskPlacementPolicy>, never>) | 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<Exclude<keyof I["hardwareGeneration"]["legacyFeatures"], "pciTopology">, never>) | undefined;
            generation2Features?: ({} & {} & Record<Exclude<keyof I["hardwareGeneration"]["generation2Features"], never>, never>) | undefined;
        } & Record<Exclude<keyof I["hardwareGeneration"], keyof HardwareGeneration>, never>) | undefined;
        kmsKey?: ({
            keyId?: string | undefined;
            versionId?: string | undefined;
        } & {
            keyId?: string | undefined;
            versionId?: string | undefined;
        } & Record<Exclude<keyof I["kmsKey"], keyof KMSKey>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Disk>, never>>(object: I): Disk;
};
export declare const Disk_LabelsEntry: {
    encode(message: Disk_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Disk_LabelsEntry;
    fromJSON(object: any): Disk_LabelsEntry;
    toJSON(message: Disk_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof Disk_LabelsEntry>, never>>(object: I): Disk_LabelsEntry;
};
export declare const DiskPlacementPolicy: {
    encode(message: DiskPlacementPolicy, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DiskPlacementPolicy;
    fromJSON(object: any): DiskPlacementPolicy;
    toJSON(message: DiskPlacementPolicy): unknown;
    fromPartial<I extends {
        placementGroupId?: string | undefined;
        placementGroupPartition?: number | undefined;
    } & {
        placementGroupId?: string | undefined;
        placementGroupPartition?: number | undefined;
    } & Record<Exclude<keyof I, keyof DiskPlacementPolicy>, never>>(object: I): DiskPlacementPolicy;
};
export declare const DiskPlacementPolicyChange: {
    encode(message: DiskPlacementPolicyChange, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): DiskPlacementPolicyChange;
    fromJSON(object: any): DiskPlacementPolicyChange;
    toJSON(message: DiskPlacementPolicyChange): unknown;
    fromPartial<I extends {
        diskId?: string | undefined;
        diskPlacementPolicy?: {
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } | undefined;
    } & {
        diskId?: string | undefined;
        diskPlacementPolicy?: ({
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } & {
            placementGroupId?: string | undefined;
            placementGroupPartition?: number | undefined;
        } & Record<Exclude<keyof I["diskPlacementPolicy"], keyof DiskPlacementPolicy>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof DiskPlacementPolicyChange>, never>>(object: I): DiskPlacementPolicyChange;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export 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 keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export 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>>, never>;
export {};
