Show / Hide Table of Contents

    Class ImageDiskReference

    The source image used for creating the disk.

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

    Constructors

    ImageDiskReference()

    Initializes a new instance of the ImageDiskReference class.

    Declaration
    public ImageDiskReference ();

    ImageDiskReference(String, Nullable<Int32>)

    Initializes a new instance of the ImageDiskReference class.

    Declaration
    public ImageDiskReference (string id, Nullable<int> lun = null);
    Parameters
    String id

    A relative uri containing either a Platform Image Repository or user image reference.

    Nullable<Int32> 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.

    Properties

    Id

    Gets or sets a relative uri containing either a Platform Image Repository or user image reference.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="id")]
    public string Id { get; set; }
    Property Value
    String

    Lun

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

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

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net