Condividi tramite


ImageDisk Class

Definition

Describes a image disk.

public class ImageDisk : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.ImageDisk>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.ImageDisk>
type ImageDisk = class
    interface IJsonModel<ImageDisk>
    interface IPersistableModel<ImageDisk>
Public Class ImageDisk
Implements IJsonModel(Of ImageDisk), IPersistableModel(Of ImageDisk)
Inheritance
ImageDisk
Derived
Implements

Constructors

ImageDisk()

Initializes a new instance of ImageDisk.

Properties

BlobUri

The Virtual Hard Disk.

Caching

Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The default values are: None for Standard storage. ReadOnly for Premium storage..

DiskEncryptionSetId

Gets or sets Id.

DiskSizeGB

Specifies the size of empty data disks in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image. This value cannot be larger than 1023 GB.

ManagedDiskId

Gets or sets Id.

SnapshotId

Gets or sets Id.

StorageAccountType

Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ImageDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ImageDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ImageDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImageDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ImageDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to