Class: Azure::Compute::Mgmt::V2017_03_30::Models::CreationData
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2017_03_30::Models::CreationData
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb
Overview
Data used when creating a disk.
Instance Attribute Summary collapse
-
#create_option ⇒ DiskCreateOption
disk's creation.
-
#image_reference ⇒ ImageDiskReference
Disk source information.
-
#source_resource_id ⇒ String
source snapshot or disk.
-
#source_uri ⇒ String
to be imported into a managed disk.
-
#storage_account_id ⇒ String
identifier of the storage account containing the blob to import as a disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CreationData class as Ruby Hash.
Instance Attribute Details
#create_option ⇒ DiskCreateOption
disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy'
18 19 20 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 18 def create_option @create_option end |
#image_reference ⇒ ImageDiskReference
Returns Disk source information.
26 27 28 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 26 def image_reference @image_reference end |
#source_resource_id ⇒ String
source snapshot or disk.
34 35 36 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 34 def source_resource_id @source_resource_id end |
#source_uri ⇒ String
to be imported into a managed disk.
30 31 32 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 30 def source_uri @source_uri end |
#storage_account_id ⇒ String
identifier of the storage account containing the blob to import as a disk. Required only if the blob is in a different subscription
23 24 25 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 23 def storage_account_id @storage_account_id end |
Class Method Details
.mapper ⇒ Object
Mapper for CreationData class as Ruby Hash. This will be used for serialization/deserialization.
41 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 91 92 93 94 95 |
# File 'lib/2017-03-30/generated/azure_mgmt_compute/models/creation_data.rb', line 41 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 |