Partager via


ImageDiskReference Class

Definition

The source image used for creating the disk.

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

Constructors

ImageDiskReference()

Initializes a new instance of ImageDiskReference.

Properties

CommunityGalleryImageId

A relative uri containing a community Azure Compute Gallery image reference.

Id

A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.

Lun

If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.

SharedGalleryImageId

A relative uri containing a direct shared Azure Compute Gallery image reference.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ImageDiskReference>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ImageDiskReference>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ImageDiskReference>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImageDiskReference>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ImageDiskReference>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to