Class: Azure::ARM::Compute::Models::OSDisk
- Inherits:
-
Object
- Object
- Azure::ARM::Compute::Models::OSDisk
- Includes:
- MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_compute/models/osdisk.rb
Overview
Describes an Operating System disk.
Instance Attribute Summary collapse
-
#caching ⇒ CachingTypes
‘None’, ‘ReadOnly’, ‘ReadWrite’.
-
#create_option ⇒ DiskCreateOptionTypes
include: ‘fromImage’, ‘empty’, ‘attach’.
-
#disk_size_gb ⇒ Integer
and the new desired size for existing OS and Data disks.
-
#encryption_settings ⇒ DiskEncryptionSettings
The disk encryption settings.
-
#image ⇒ VirtualHardDisk
VirtualHardDisk will be copied before using it to attach to the Virtual Machine.If SourceImage is provided, the destination VirtualHardDisk should not exist.
-
#name ⇒ String
The disk name.
-
#os_type ⇒ OperatingSystemTypes
values include: ‘Windows’, ‘Linux’.
-
#vhd ⇒ VirtualHardDisk
The Virtual Hard Disk.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for OSDisk class as Ruby Hash.
Instance Attribute Details
#caching ⇒ CachingTypes
‘None’, ‘ReadOnly’, ‘ReadWrite’
36 37 38 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 36 def caching @caching end |
#create_option ⇒ DiskCreateOptionTypes
include: ‘fromImage’, ‘empty’, ‘attach’
40 41 42 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 40 def create_option @create_option end |
#disk_size_gb ⇒ Integer
and the new desired size for existing OS and Data disks.
44 45 46 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 44 def disk_size_gb @disk_size_gb end |
#encryption_settings ⇒ DiskEncryptionSettings
Returns the disk encryption settings.
20 21 22 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 20 def encryption_settings @encryption_settings end |
#image ⇒ VirtualHardDisk
VirtualHardDisk will be copied before using it to attach to the Virtual Machine.If SourceImage is provided, the destination VirtualHardDisk should not exist.
32 33 34 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 32 def image @image end |
#name ⇒ String
Returns the disk name.
23 24 25 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 23 def name @name end |
#os_type ⇒ OperatingSystemTypes
values include: ‘Windows’, ‘Linux’
17 18 19 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 17 def os_type @os_type end |
#vhd ⇒ VirtualHardDisk
Returns the Virtual Hard Disk.
26 27 28 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 26 def vhd @vhd end |
Class Method Details
.mapper ⇒ Object
Mapper for OSDisk class as Ruby Hash. This will be used for serialization/deserialization.
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 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 |
# File 'lib/generated/azure_mgmt_compute/models/osdisk.rb', line 51 def self.mapper() { required: false, serialized_name: 'OSDisk', type: { name: 'Composite', class_name: 'OSDisk', model_properties: { os_type: { required: false, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, encryption_settings: { required: false, serialized_name: 'encryptionSettings', type: { name: 'Composite', class_name: 'DiskEncryptionSettings' } }, name: { required: true, serialized_name: 'name', type: { name: 'String' } }, vhd: { required: true, serialized_name: 'vhd', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, image: { required: false, serialized_name: 'image', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, caching: { required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, create_option: { required: true, serialized_name: 'createOption', type: { name: 'Enum', module: 'DiskCreateOptionTypes' } }, disk_size_gb: { required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } } } } } end |