class Azure::Compute::Mgmt::V2015_06_15::Models::VirtualMachineScaleSetOSDisk

Describes a virtual machine scale set operating system disk.

Attributes

caching[RW]

@return [CachingTypes] Specifies the caching requirements.
Possible values are:
*None*
*ReadOnly*
*ReadWrite*
Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

create_option[RW]

@return [DiskCreateOptionTypes] Specifies how the virtual machines in 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'

image[RW]

@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.

name[RW]

@return [String] The disk name.

os_type[RW]

@return [OperatingSystemTypes] This property allows you to specify the 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'

vhd_containers[RW]

@return [Array<String>] The list of virtual hard disk container uris.

Public Class Methods

mapper() click to toggle source

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

# File lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb, line 54
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: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'caching',
          type: {
            name: 'Enum',
            module: 'CachingTypes'
          }
        },
        create_option: {
          client_side_validation: true,
          required: true,
          serialized_name: 'createOption',
          type: {
            name: 'Enum',
            module: 'DiskCreateOptionTypes'
          }
        },
        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'
                }
            }
          }
        }
      }
    }
  }
end