# 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::V2017_03_30
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] 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'
attr_accessor :caching
# @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'
attr_accessor :create_option
# @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'
attr_accessor :os_type
# @return [VirtualHardDisk] Specifies information about the unmanaged
# user image to base the scale set on.
attr_accessor :image
# @return [Array] Specifies the container urls that are used to
# store operating system disks for the scale set.
attr_accessor :vhd_containers
# @return [VirtualMachineScaleSetManagedDiskParameters] The managed disk
# parameters.
attr_accessor :managed_disk
#
# 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: false,
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'
}
}
}
},
managed_disk: {
required: false,
serialized_name: 'managedDisk',
type: {
name: 'Composite',
class_name: 'VirtualMachineScaleSetManagedDiskParameters'
}
}
}
}
}
end
end
end
end