Class: Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DataDiskProperties
- Inherits:
-
Object
- Object
- Azure::DevTestLabs::Mgmt::V2016_05_15::Models::DataDiskProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb
Overview
Request body for adding a new or existing data disk to a virtual machine.
Instance Attribute Summary collapse
-
#attach_new_data_disk_options ⇒ AttachNewDataDiskOptions
disk to the virtual machine.
-
#existing_lab_disk_id ⇒ String
virtual machine.
-
#host_caching ⇒ HostCachingOptions
ReadOnly, ReadWrite).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for DataDiskProperties class as Ruby Hash.
Instance Attribute Details
#attach_new_data_disk_options ⇒ AttachNewDataDiskOptions
disk to the virtual machine.
17 18 19 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb', line 17 def end |
#existing_lab_disk_id ⇒ String
virtual machine.
21 22 23 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb', line 21 def existing_lab_disk_id @existing_lab_disk_id end |
#host_caching ⇒ HostCachingOptions
ReadOnly, ReadWrite). Possible values include: ‘None’, ‘ReadOnly’, ‘ReadWrite’
26 27 28 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb', line 26 def host_caching @host_caching end |
Class Method Details
.mapper ⇒ Object
Mapper for DataDiskProperties class as Ruby Hash. This will be used for serialization/deserialization.
33 34 35 36 37 38 39 40 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 |
# File 'lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'DataDiskProperties', type: { name: 'Composite', class_name: 'DataDiskProperties', model_properties: { attach_new_data_disk_options: { client_side_validation: true, required: false, serialized_name: 'attachNewDataDiskOptions', type: { name: 'Composite', class_name: 'AttachNewDataDiskOptions' } }, existing_lab_disk_id: { client_side_validation: true, required: false, serialized_name: 'existingLabDiskId', type: { name: 'String' } }, host_caching: { client_side_validation: true, required: false, serialized_name: 'hostCaching', type: { name: 'String' } } } } } end |