Show / Hide Table of Contents

    Class GalleryDiskImage

    This is the disk image base class.

    Inheritance
    Object
    GalleryDiskImage
    GalleryDataDiskImage
    GalleryOSDiskImage
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class GalleryDiskImage

    Constructors

    GalleryDiskImage()

    Initializes a new instance of the GalleryDiskImage class.

    Declaration
    public GalleryDiskImage ();

    GalleryDiskImage(Nullable<Int32>, Nullable<HostCaching>, GalleryArtifactVersionSource)

    Initializes a new instance of the GalleryDiskImage class.

    Declaration
    public GalleryDiskImage (Nullable<int> sizeInGB = null, Nullable<Microsoft.Azure.Management.Compute.Models.HostCaching> hostCaching = null, Microsoft.Azure.Management.Compute.Models.GalleryArtifactVersionSource source = null);
    Parameters
    Nullable<Int32> sizeInGB

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

    Nullable<HostCaching> hostCaching

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

    GalleryArtifactVersionSource source

    Properties

    HostCaching

    Gets or sets the host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="hostCaching")]
    public Nullable<Microsoft.Azure.Management.Compute.Models.HostCaching> HostCaching { get; set; }
    Property Value
    Nullable<HostCaching>

    SizeInGB

    Gets this property indicates the size of the VHD to be created.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="sizeInGB")]
    public Nullable<int> SizeInGB { get; }
    Property Value
    Nullable<Int32>

    Source

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="source")]
    public Microsoft.Azure.Management.Compute.Models.GalleryArtifactVersionSource Source { get; set; }
    Property Value
    GalleryArtifactVersionSource

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net