# 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::EventGrid::V2018_01_01
  module Models
    #
    # Properties JSON element.
    #
    class DeviceTwinInfoProperties

      include MsRestAzure

      # @return [DeviceTwinProperties] A portion of the properties that can be
      # written only by the application back-end, and read by the device.
      attr_accessor :desired

      # @return [DeviceTwinProperties] A portion of the properties that can be
      # written only by the device, and read by the application back-end.
      attr_accessor :reported


      #
      # Mapper for DeviceTwinInfoProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeviceTwinInfo_properties',
          type: {
            name: 'Composite',
            class_name: 'DeviceTwinInfoProperties',
            model_properties: {
              desired: {
                client_side_validation: true,
                required: false,
                serialized_name: 'desired',
                type: {
                  name: 'Composite',
                  class_name: 'DeviceTwinProperties'
                }
              },
              reported: {
                client_side_validation: true,
                required: false,
                serialized_name: 'reported',
                type: {
                  name: 'Composite',
                  class_name: 'DeviceTwinProperties'
                }
              }
            }
          }
        }
      end
    end
  end
end
