Partager via


GalleryDataDiskImage Class

Definition

This is the data disk image.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDataDiskImageTypeConverter))]
public class GalleryDataDiskImage : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryDataDiskImage, Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.GalleryDataDiskImageTypeConverter))>]
type GalleryDataDiskImage = class
    interface IGalleryDataDiskImage
    interface IJsonSerializable
    interface IGalleryDiskImage
    interface IValidates
Public Class GalleryDataDiskImage
Implements IGalleryDataDiskImage, IValidates
Inheritance
GalleryDataDiskImage
Attributes
Implements

Constructors

GalleryDataDiskImage()

Creates an new GalleryDataDiskImage instance.

Properties

HostCaching

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

Lun

This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.

SizeInGb

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

Source

The gallery artifact version source.

SourceId

The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.

SourceUri

The uri of the gallery artifact version source. Currently used to specify vhd/blob source.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of GalleryDataDiskImage.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GalleryDataDiskImage.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryDataDiskImage.

FromJsonString(String)

Creates a new instance of GalleryDataDiskImage, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of GalleryDataDiskImage into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to