Show / Hide Table of Contents

    Class GalleryDataDiskImage

    This is the data disk image.

    Inheritance
    Object
    GalleryDiskImage
    GalleryDataDiskImage
    Inherited Members
    GalleryDiskImage.HostCaching
    GalleryDiskImage.SizeInGB
    GalleryDiskImage.Source
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Compute.dll
    Syntax
    public class GalleryDataDiskImage : Microsoft.Azure.Management.Compute.Models.GalleryDiskImage

    Constructors

    GalleryDataDiskImage()

    Initializes a new instance of the GalleryDataDiskImage class.

    Declaration
    public GalleryDataDiskImage ();

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

    Initializes a new instance of the GalleryDataDiskImage class.

    Declaration
    public GalleryDataDiskImage (int lun, Nullable<int> sizeInGB = null, Nullable<Microsoft.Azure.Management.Compute.Models.HostCaching> hostCaching = null, Microsoft.Azure.Management.Compute.Models.GalleryArtifactVersionSource source = null);
    Parameters
    Int32 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.

    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

    Lun

    Gets or sets 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.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="lun")]
    public int Lun { get; set; }
    Property Value
    Int32

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net