Class: Azure::Compute::Mgmt::V2020_06_30::Models::CreationData

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-06-30/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', 'Restore', 'Upload'

Returns:



18
19
20
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 18

def create_option
  @create_option
end

The id of the ImageDiskReference will be the ARM id of the shared galley image version from which to create a disk.

Returns:



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

def gallery_image_reference
  @gallery_image_reference
end

#image_referenceImageDiskReference

Returns Disk source information.

Returns:



26
27
28
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 26

def image_reference
  @image_reference
end

#logical_sector_sizeInteger

Supported values are 512 ad 4096. 4096 is the default.

Returns:

  • (Integer)

    Logical sector size in bytes for Ultra disks.



53
54
55
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 53

def logical_sector_size
  @logical_sector_size
end

#source_resource_idString

source snapshot or disk.

Returns:

  • (String)

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



39
40
41
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 39

def source_resource_id
  @source_resource_id
end

#source_unique_idString

identifying the source of this resource.

Returns:

  • (String)

    If this field is set, this is the unique id



43
44
45
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 43

def source_unique_id
  @source_unique_id
end

#source_uriString

to be imported into a managed disk.

Returns:

  • (String)

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



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

def source_uri
  @source_uri
end

#storage_account_idString

Manager identifier of the storage account containing the blob to import as a disk.

Returns:

  • (String)

    Required if createOption is Import. The Azure Resource



23
24
25
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 23

def 
  @storage_account_id
end

#upload_size_bytesInteger

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).

Returns:

  • (Integer)

    If createOption is Upload, this is the size of the



49
50
51
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 49

def upload_size_bytes
  @upload_size_bytes
end

Class Method Details

.mapperObject

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



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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/2020-06-30/generated/azure_mgmt_compute/models/creation_data.rb', line 60

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: 'String'
          }
        },
        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'
          }
        },
        gallery_image_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'galleryImageReference',
          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'
          }
        },
        source_unique_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sourceUniqueId',
          type: {
            name: 'String'
          }
        },
        upload_size_bytes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'uploadSizeBytes',
          type: {
            name: 'Number'
          }
        },
        logical_sector_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'logicalSectorSize',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end