# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Compute module Models # # Describes a virtual machine scale set operating system disk. # class VirtualMachineScaleSetOSDisk include MsRestAzure # @return [String] the disk name. attr_accessor :name # @return [CachingTypes] the caching type. Possible values include: # 'None', 'ReadOnly', 'ReadWrite' attr_accessor :caching # @return [DiskCreateOptionTypes] the create option. Possible values # include: 'fromImage', 'empty', 'attach' attr_accessor :create_option # @return [OperatingSystemTypes] the Operating System type. Possible # values include: 'Windows', 'Linux' attr_accessor :os_type # @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 # # Mapper for VirtualMachineScaleSetOSDisk class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'VirtualMachineScaleSetOSDisk', type: { name: 'Composite', class_name: 'VirtualMachineScaleSetOSDisk', model_properties: { name: { required: true, serialized_name: 'name', type: { name: 'String' } }, caching: { required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, create_option: { required: true, serialized_name: 'createOption', type: { name: 'Enum', module: 'DiskCreateOptionTypes' } }, os_type: { required: false, serialized_name: 'osType', type: { name: 'Enum', module: 'OperatingSystemTypes' } }, image: { required: false, serialized_name: 'image', type: { name: 'Composite', class_name: 'VirtualHardDisk' } }, vhd_containers: { required: false, serialized_name: 'vhdContainers', type: { name: 'Sequence', element: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end