Class: Azure::Compute::Mgmt::V2020_06_01::Models::VirtualMachineScaleSetOSDisk

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

Overview

Describes a virtual machine scale set operating system disk.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cachingCachingTypes

Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

Returns:



23
24
25
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 23

def caching
  @caching
end

#create_optionDiskCreateOptionTypes

the scale set should be created.
The only allowed value is: *FromImage* u2013 This value is used when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference element described above. If you are using a marketplace image, you also use the plan element previously described. Possible values include: 'FromImage', 'Empty', 'Attach'

Returns:



36
37
38
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 36

def create_option
  @create_option
end

#diff_disk_settingsDiffDiskSettings

the operating system disk used by the virtual machine scale set.

Returns:



40
41
42
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 40

def diff_disk_settings
  @diff_disk_settings
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



46
47
48
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 46

def disk_size_gb
  @disk_size_gb
end

#imageVirtualHardDisk

user image to base the scale set on.

Returns:



57
58
59
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 57

def image
  @image
end

#managed_diskVirtualMachineScaleSetManagedDiskParameters

parameters.

Returns:



65
66
67
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 65

def managed_disk
  @managed_disk
end

#nameString

Returns The disk name.

Returns:

  • (String)

    The disk name.



16
17
18
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 16

def name
  @name
end

#os_typeOperatingSystemTypes

type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD.
Possible values are:
*Windows*
*Linux*. Possible values include: 'Windows', 'Linux'

Returns:



53
54
55
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 53

def os_type
  @os_type
end

#vhd_containersArray<String>

store operating system disks for the scale set.

Returns:

  • (Array<String>)

    Specifies the container urls that are used to



61
62
63
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 61

def vhd_containers
  @vhd_containers
end

#write_accelerator_enabledBoolean

or disabled on the disk.

Returns:

  • (Boolean)

    Specifies whether writeAccelerator should be enabled



27
28
29
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 27

def write_accelerator_enabled
  @write_accelerator_enabled
end

Class Method Details

.mapperObject

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



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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/2020-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb', line 72

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VirtualMachineScaleSetOSDisk',
    type: {
      name: 'Composite',
      class_name: 'VirtualMachineScaleSetOSDisk',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        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'
          }
        },
        create_option: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createOption',
          type: {
            name: 'String'
          }
        },
        diff_disk_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diffDiskSettings',
          type: {
            name: 'Composite',
            class_name: 'DiffDiskSettings'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        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