你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
OSDisk Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |