次の方法で共有


DataDisksToAttach Class

Definition

Describes the data disk to be attached.

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

Constructors

DataDisksToAttach(String)

Initializes a new instance of DataDisksToAttach.

Properties

Caching

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

DeleteOption

Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value is used, the data disk is deleted when VM is deleted. Detach. If this value is used, the data disk is retained after VM is deleted. The default value is set to Detach.

DiskEncryptionSetId

Gets or sets Id.

DiskId

ID of the managed data disk.

Lun

The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. If not specified, lun would be auto assigned.

WriteAcceleratorEnabled

Specifies whether writeAccelerator should be enabled or disabled on the disk.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DataDisksToAttach>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<DataDisksToAttach>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DataDisksToAttach>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DataDisksToAttach>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<DataDisksToAttach>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to