Class: Azure::Compute::Mgmt::V2020_12_01::Models::DiffDiskSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb

Overview

Describes the parameters of ephemeral disk settings that can be specified for operating system disk.
NOTE: The ephemeral disk settings can only be specified for managed disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#optionDiffDiskOptions

operating system disk. Possible values include: 'Local'

Returns:



19
20
21
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb', line 19

def option
  @option
end

#placementDiffDiskPlacement

operating system disk.
Possible values are:
*CacheDisk*
*ResourceDisk*
Default: *CacheDisk* if one is configured for the VM size otherwise *ResourceDisk* is used.
Refer to VM size documentation for Windows VM at docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes and Linux VM at docs.microsoft.com/en-us/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Possible values include: 'CacheDisk', 'ResourceDisk'

Returns:



31
32
33
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb', line 31

def placement
  @placement
end

Class Method Details

.mapperObject

Mapper for DiffDiskSettings class as Ruby Hash. This will be used for serialization/deserialization.



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
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DiffDiskSettings',
    type: {
      name: 'Composite',
      class_name: 'DiffDiskSettings',
      model_properties: {
        option: {
          client_side_validation: true,
          required: false,
          serialized_name: 'option',
          type: {
            name: 'String'
          }
        },
        placement: {
          client_side_validation: true,
          required: false,
          serialized_name: 'placement',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end