Class: Azure::Compute::Mgmt::V2020_12_01::Models::ImageStorageProfile
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2020_12_01::Models::ImageStorageProfile
- Includes:
- MsRestAzure
- Defined in:
- lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb
Overview
Describes a storage profile.
Instance Attribute Summary collapse
-
#data_disks ⇒ Array<ImageDataDisk>
to add a data disk to a virtual machine.
-
#os_disk ⇒ ImageOSDisk
disk used by the virtual machine.
-
#zone_resilient ⇒ Boolean
Default is false.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageStorageProfile class as Ruby Hash.
Instance Attribute Details
#data_disks ⇒ Array<ImageDataDisk>
to add 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).
25 26 27 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 25 def data_disks @data_disks end |
#os_disk ⇒ ImageOSDisk
disk 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).
19 20 21 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 19 def os_disk @os_disk end |
#zone_resilient ⇒ Boolean
Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).
30 31 32 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 30 def zone_resilient @zone_resilient end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageStorageProfile class as Ruby Hash. This will be used for serialization/deserialization.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageStorageProfile', type: { name: 'Composite', class_name: 'ImageStorageProfile', model_properties: { os_disk: { client_side_validation: true, required: false, serialized_name: 'osDisk', type: { name: 'Composite', class_name: 'ImageOSDisk' } }, data_disks: { client_side_validation: true, required: false, serialized_name: 'dataDisks', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ImageDataDiskElementType', type: { name: 'Composite', class_name: 'ImageDataDisk' } } } }, zone_resilient: { client_side_validation: true, required: false, serialized_name: 'zoneResilient', type: { name: 'Boolean' } } } } } end |