# 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::DevTestLabs::Mgmt::V2016_05_15
  module Models
    #
    # Request body for adding a new or existing data disk to a virtual machine.
    #
    class DataDiskProperties

      include MsRestAzure

      # @return [AttachNewDataDiskOptions] Specifies options to attach a new
      # disk to the virtual machine.
      attr_accessor :attach_new_data_disk_options

      # @return [String] Specifies the existing lab disk id to attach to
      # virtual machine.
      attr_accessor :existing_lab_disk_id

      # @return [HostCachingOptions] Caching option for a data disk (i.e. None,
      # ReadOnly, ReadWrite). Possible values include: 'None', 'ReadOnly',
      # 'ReadWrite'
      attr_accessor :host_caching


      #
      # Mapper for DataDiskProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DataDiskProperties',
          type: {
            name: 'Composite',
            class_name: 'DataDiskProperties',
            model_properties: {
              attach_new_data_disk_options: {
                client_side_validation: true,
                required: false,
                serialized_name: 'attachNewDataDiskOptions',
                type: {
                  name: 'Composite',
                  class_name: 'AttachNewDataDiskOptions'
                }
              },
              existing_lab_disk_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'existingLabDiskId',
                type: {
                  name: 'String'
                }
              },
              host_caching: {
                client_side_validation: true,
                required: false,
                serialized_name: 'hostCaching',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
