# 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::V2020_09_30_preview
  module Models
    #
    # Contains encryption settings for a data disk image.
    #
    class DataDiskImageEncryption < DiskImageEncryption

      include MsRestAzure

      # @return [Integer] This property specifies the logical unit number of
      # the data disk. This value is used to identify data disks within the
      # Virtual Machine and therefore must be unique for each data disk
      # attached to the Virtual Machine.
      attr_accessor :lun


      #
      # Mapper for DataDiskImageEncryption class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DataDiskImageEncryption',
          type: {
            name: 'Composite',
            class_name: 'DataDiskImageEncryption',
            model_properties: {
              disk_encryption_set_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'diskEncryptionSetId',
                type: {
                  name: 'String'
                }
              },
              lun: {
                client_side_validation: true,
                required: true,
                serialized_name: 'lun',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
