Class: Azure::Compute::Mgmt::V2020_12_01::Models::VirtualMachineScaleSetUpdateOSDisk

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

Overview

Describes virtual machine scale set operating system disk Update Object. This should be used for Updating VMSS OS Disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cachingCachingTypes

'None', 'ReadOnly', 'ReadWrite'

Returns:

  • (CachingTypes)

    The caching type. Possible values include:



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

def caching
  @caching
end

#disk_size_gbInteger

gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
This value cannot be larger than 1023 GB

Returns:

  • (Integer)

    Specifies the size of the operating system disk in



28
29
30
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb', line 28

def disk_size_gb
  @disk_size_gb
end

#imageVirtualHardDisk

VirtualHardDisk will be copied before using it to attach to the Virtual Machine. If SourceImage is provided, the destination VirtualHardDisk should not exist.

Returns:



34
35
36
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb', line 34

def image
  @image
end

#managed_diskVirtualMachineScaleSetManagedDiskParameters

parameters.

Returns:



41
42
43
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb', line 41

def managed_disk
  @managed_disk
end

#vhd_containersArray<String>

Returns The list of virtual hard disk container uris.

Returns:

  • (Array<String>)

    The list of virtual hard disk container uris.



37
38
39
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb', line 37

def vhd_containers
  @vhd_containers
end

#write_accelerator_enabledBoolean

or disabled on the disk.

Returns:

  • (Boolean)

    Specifies whether writeAccelerator should be enabled



22
23
24
# File 'lib/2020-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb', line 22

def write_accelerator_enabled
  @write_accelerator_enabled
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineScaleSetUpdateOSDisk',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetUpdateOSDisk',
      model_properties: {
        caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'caching',
          type: {
            name: 'Enum',
            module: 'CachingTypes'
          }
        },
        write_accelerator_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'writeAcceleratorEnabled',
          type: {
            name: 'Boolean'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        image: {
          client_side_validation: true,
          required: false,
          serialized_name: 'image',
          type: {
            name: 'Composite',
            class_name: 'VirtualHardDisk'
          }
        },
        vhd_containers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'vhdContainers',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        managed_disk: {
          client_side_validation: true,
          required: false,
          serialized_name: 'managedDisk',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineScaleSetManagedDiskParameters'
          }
        }
      }
    }
  }
end