Compartir a través de


GalleryOSDiskImage Class

Definition

This is the OS disk image.

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

Constructors

GalleryOSDiskImage()

Creates an new GalleryOSDiskImage instance.

Properties

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.

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 GalleryOSDiskImage.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of GalleryOSDiskImage.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of GalleryOSDiskImage into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to