Class: Azure::Compute::Mgmt::V2016_03_30::Models::StorageProfile
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2016_03_30::Models::StorageProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb
Overview
Specifies the storage settings for the virtual machine disks.
Instance Attribute Summary collapse
-
#data_disks ⇒ Array<DataDisk>
a data disk to a virtual machine.
-
#image_reference ⇒ ImageReference
You can specify information about platform images, marketplace images, or virtual machine images.
-
#os_disk ⇒ OSDisk
used by the virtual machine.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for StorageProfile class as Ruby Hash.
Instance Attribute Details
#data_disks ⇒ Array<DataDisk>
a data disk to a virtual machine.
For more information about disks, see [About disks and VHDs for Azure virtual machines](docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
32 33 34 |
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb', line 32 def data_disks @data_disks end |
#image_reference ⇒ ImageReference
You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
20 21 22 |
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb', line 20 def image_reference @image_reference end |
#os_disk ⇒ OSDisk
used by the virtual machine.
For more information about disks, see [About disks and VHDs for Azure virtual machines](docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
26 27 28 |
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb', line 26 def os_disk @os_disk end |
Class Method Details
.mapper ⇒ Object
Mapper for StorageProfile class as Ruby Hash. This will be used for serialization/deserialization.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/storage_profile.rb', line 39 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'StorageProfile', type: { name: 'Composite', class_name: 'StorageProfile', model_properties: { image_reference: { client_side_validation: true, required: false, serialized_name: 'imageReference', type: { name: 'Composite', class_name: 'ImageReference' } }, os_disk: { client_side_validation: true, required: false, serialized_name: 'osDisk', type: { name: 'Composite', class_name: 'OSDisk' } }, data_disks: { client_side_validation: true, required: false, serialized_name: 'dataDisks', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'DataDiskElementType', type: { name: 'Composite', class_name: 'DataDisk' } } } } } } } end |