class Azure::Compute::Mgmt::V2016_04_30_preview::Models::CreationData

Data used when creating a disk.

Attributes

create_option[RW]

@return [DiskCreateOption] This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'

image_reference[RW]

@return [ImageDiskReference] Disk source information.

source_resource_id[RW]

@return [String] If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.

source_uri[RW]

@return [String] If createOption is Import, this is a SAS URI to a blob to be imported into a managed disk. If createOption is Copy, this is a relative Uri containing the id of the source snapshot to be copied into a managed disk.

storage_account_id[RW]

@return [String] 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

Public Class Methods

mapper() click to toggle source

Mapper for CreationData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb, line 44
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CreationData',
    type: {
      name: 'Composite',
      class_name: 'CreationData',
      model_properties: {
        create_option: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createOption',
          type: {
            name: 'Enum',
            module: 'DiskCreateOption'
          }
        },
        storage_account_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageAccountId',
          type: {
            name: 'String'
          }
        },
        image_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'imageReference',
          type: {
            name: 'Composite',
            class_name: 'ImageDiskReference'
          }
        },
        source_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceUri',
          type: {
            name: 'String'
          }
        },
        source_resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceResourceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end