# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Compute::Mgmt::V2018_06_01 module Models # # Describes virtual machine scale set operating system disk Update Object. # This should be used for Updating VMSS OS Disk. # class VirtualMachineScaleSetUpdateOSDisk include MsRestAzure # @return [CachingTypes] The caching type. Possible values include: # 'None', 'ReadOnly', 'ReadWrite' attr_accessor :caching # @return [Boolean] Specifies whether writeAccelerator should be enabled # or disabled on the disk. attr_accessor :write_accelerator_enabled # @return [Integer] Specifies the size of the operating system disk in # 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 attr_accessor :disk_size_gb # @return [VirtualHardDisk] The Source User Image VirtualHardDisk. This # VirtualHardDisk will be copied before using it to attach to the Virtual # Machine. If SourceImage is provided, the destination VirtualHardDisk # should not exist. attr_accessor :image # @return [Array] The list of virtual hard disk container uris. attr_accessor :vhd_containers # @return [VirtualMachineScaleSetManagedDiskParameters] The managed disk # parameters. attr_accessor :managed_disk # # Mapper for VirtualMachineScaleSetUpdateOSDisk class as Ruby Hash. # This will be used for serialization/deserialization. # 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 end end end