Class: Azure::ARM::Compute::Models::CreationData

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_compute/models/creation_data.rb

Overview

Data used when creating a disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#create_optionDiskCreateOption

disk’s creation. Possible values include: ‘Empty’, ‘Attach’, ‘FromImage’, ‘Import’, ‘Copy’

Returns:



19
20
21
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 19

def create_option
  @create_option
end

#image_referenceImageDiskReference

Returns Disk source information.

Returns:



27
28
29
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 27

def image_reference
  @image_reference
end

#source_resource_idString

source snapshot or disk.

Returns:

  • (String)

    If createOption is Copy, this is the ARM id of the



35
36
37
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 35

def source_resource_id
  @source_resource_id
end

#source_uriString

to be imported into a managed disk.

Returns:

  • (String)

    If creationOption is Import, this is the URI of a blob



31
32
33
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 31

def source_uri
  @source_uri
end

#storage_account_idString

identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription

Returns:

  • (String)

    If createOption is Import, the Azure Resource Manager



24
25
26
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 24

def 
  
end

Class Method Details

.mapperObject

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



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/generated/azure_mgmt_compute/models/creation_data.rb', line 42

def self.mapper()
  {
    required: false,
    serialized_name: 'CreationData',
    type: {
      name: 'Composite',
      class_name: 'CreationData',
      model_properties: {
        create_option: {
          required: true,
          serialized_name: 'createOption',
          type: {
            name: 'Enum',
            module: 'DiskCreateOption'
          }
        },
        storage_account_id: {
          required: false,
          serialized_name: 'storageAccountId',
          type: {
            name: 'String'
          }
        },
        image_reference: {
          required: false,
          serialized_name: 'imageReference',
          type: {
            name: 'Composite',
            class_name: 'ImageDiskReference'
          }
        },
        source_uri: {
          required: false,
          serialized_name: 'sourceUri',
          type: {
            name: 'String'
          }
        },
        source_resource_id: {
          required: false,
          serialized_name: 'sourceResourceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end