Dela via


OSDisk Class

Definition

Settings for the operating system disk of the compute node (VM).

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

Constructors

OSDisk()

Initializes a new instance of OSDisk.

Properties

Caching

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

DiskSizeGB

The initial disk size in GB when creating new OS disk.

EphemeralOSDiskSettings

Specifies the ephemeral Disk Settings for the operating system disk used by the compute node (VM).

ManagedDisk

The managed disk parameters.

WriteAcceleratorEnabled

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

Explicit Interface Implementations

IJsonModel<OSDisk>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<OSDisk>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OSDisk>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OSDisk>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<OSDisk>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to