Dela via


GalleryDiskImage Class

Definition

This is the disk image base class.

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

Constructors

GalleryDiskImage()

Initializes a new instance of GalleryDiskImage.

Properties

GallerySource

The source for the disk image.

HostCaching

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

SizeInGB

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<GalleryDiskImage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<GalleryDiskImage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<GalleryDiskImage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GalleryDiskImage>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<GalleryDiskImage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to