Show / Hide Table of Contents

    Class CreationData

    Data used when creating a disk.

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

    Constructors

    CreationData()

    Initializes a new instance of the CreationData class.

    Declaration
    public CreationData ();

    CreationData(String, String, ImageDiskReference, String, String, String, Nullable<Int64>)

    Initializes a new instance of the CreationData class.

    Declaration
    public CreationData (string createOption, string storageAccountId = null, Microsoft.Azure.Management.Compute.Models.ImageDiskReference imageReference = null, string sourceUri = null, string sourceResourceId = null, string sourceUniqueId = null, Nullable<long> uploadSizeBytes = null);
    Parameters
    String createOption

    This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload'

    String storageAccountId

    If createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription

    ImageDiskReference imageReference

    Disk source information.

    String sourceUri

    If createOption is Import, this is the URI of a blob to be imported into a managed disk.

    String sourceResourceId

    If createOption is Copy, this is the ARM id of the source snapshot or disk.

    String sourceUniqueId

    If this field is set, this is the unique id identifying the source of this resource.

    Nullable<Int64> uploadSizeBytes

    If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).

    Properties

    CreateOption

    Gets or sets this enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore', 'Upload'

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

    ImageReference

    Gets or sets disk source information.

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

    SourceResourceId

    Gets or sets if createOption is Copy, this is the ARM id of the source snapshot or disk.

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

    SourceUniqueId

    Gets if this field is set, this is the unique id identifying the source of this resource.

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

    SourceUri

    Gets or sets if createOption is Import, this is the URI of a blob to be imported into a managed disk.

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

    StorageAccountId

    Gets or sets if createOption is Import, the Azure Resource Manager identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription

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

    UploadSizeBytes

    Gets or sets if createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="uploadSizeBytes")]
    public Nullable<long> UploadSizeBytes { get; set; }
    Property Value
    Nullable<Int64>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net