@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface DiskSpec

    Represents the nebius.compute.v1.DiskSpec protobuf message.

    interface DiskSpec {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.compute.v1.DiskSpec";
        blockSizeBytes: Long;
        diskEncryption?: DiskEncryption;
        forbidDeletion: boolean;
        size?:
            | { $case: "sizeBytes"; sizeBytes: Long }
            | { $case: "sizeKibibytes"; sizeKibibytes: Long }
            | { $case: "sizeMebibytes"; sizeMebibytes: Long }
            | { $case: "sizeGibibytes"; sizeGibibytes: Long };
        source?:
            | { $case: "sourceImageId"; sourceImageId: string }
            | { $case: "sourceImageFamily"; sourceImageFamily: SourceImageFamily }
            | { $case: "sourceSnapshotId"; sourceSnapshotId: string };
        type: DiskSpec_DiskType;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      Represents the nebius.compute.v1.DiskSpec protobuf message.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • Represents the nebius.compute.v1.DiskSpec protobuf message.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.compute.v1.DiskSpec"

    Contains the fully qualified protobuf type name.

    blockSizeBytes: Long

    Block size in bytes. The block size must be a power of two between 4096 bytes (4 KiB) and 131072 bytes (128 KiB). The default value is 4096 bytes (4 KiB).

    diskEncryption?: DiskEncryption

    Defines how data on the disk is encrypted. By default, no encryption is applied.

    forbidDeletion: boolean

    Prevents deletion whilst set

    size?:
        | { $case: "sizeBytes"; sizeBytes: Long }
        | { $case: "sizeKibibytes"; sizeKibibytes: Long }
        | { $case: "sizeMebibytes"; sizeMebibytes: Long }
        | { $case: "sizeGibibytes"; sizeGibibytes: Long }

    Size of the disk. The size must be within the limits for the selected disk type. For current limits, see https://docs.nebius.com/compute/storage/types#disks-types-comparison

    Type Declaration

    • { $case: "sizeBytes"; sizeBytes: Long }
      • $case: "sizeBytes"

        Contains the case.

      • sizeBytes: Long

        Contains the size bytes.

    • { $case: "sizeKibibytes"; sizeKibibytes: Long }
      • $case: "sizeKibibytes"

        Contains the case.

      • sizeKibibytes: Long

        Contains the size kibibytes.

    • { $case: "sizeMebibytes"; sizeMebibytes: Long }
      • $case: "sizeMebibytes"

        Contains the case.

      • sizeMebibytes: Long

        Contains the size mebibytes.

    • { $case: "sizeGibibytes"; sizeGibibytes: Long }
      • $case: "sizeGibibytes"

        Contains the case.

      • sizeGibibytes: Long

        Contains the size gibibytes.

    source?:
        | { $case: "sourceImageId"; sourceImageId: string }
        | { $case: "sourceImageFamily"; sourceImageFamily: SourceImageFamily }
        | { $case: "sourceSnapshotId"; sourceSnapshotId: string }

    Source for disk creation. Boot disk must be created from an image https://docs.nebius.com/compute/storage/manage#boot Additional disks can be created as an empty volume https://docs.nebius.com/compute/storage/manage#additional

    Type Declaration

    • { $case: "sourceImageId"; sourceImageId: string }
      • $case: "sourceImageId"

        Contains the case.

      • sourceImageId: string

        Contains the source image ID.

    • { $case: "sourceImageFamily"; sourceImageFamily: SourceImageFamily }
      • $case: "sourceImageFamily"

        Contains the case.

      • sourceImageFamily: SourceImageFamily

        Contains the source image family.

    • { $case: "sourceSnapshotId"; sourceSnapshotId: string }
      • $case: "sourceSnapshotId"

        Contains the case.

      • sourceSnapshotId: string

        Contains the source snapshot ID.

    The type of disk defines the performance and reliability characteristics of the block device. For details, see https://docs.nebius.com/compute/storage/types#disks-types