Dela via


SharedGalleryDiskImage Class

Definition

This is the disk image base class.

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

Properties

DiskSizeGB

This property indicates the size of the VHD to be created.

HostCaching

The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SharedGalleryDiskImage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SharedGalleryDiskImage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SharedGalleryDiskImage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SharedGalleryDiskImage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SharedGalleryDiskImage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to