# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Automation::Mgmt::V2015_10_31
  module Models
    #
    # Definition of the agent registration infomration type.
    #
    class AgentRegistration

      include MsRestAzure

      # @return [String] Gets or sets the dsc meta configuration.
      attr_accessor :dsc_meta_configuration

      # @return [String] Gets or sets the dsc server endpoint.
      attr_accessor :endpoint

      # @return [AgentRegistrationKeys] Gets or sets the agent registration
      # keys.
      attr_accessor :keys

      # @return [String] Gets or sets the id.
      attr_accessor :id


      #
      # Mapper for AgentRegistration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'AgentRegistration',
          type: {
            name: 'Composite',
            class_name: 'AgentRegistration',
            model_properties: {
              dsc_meta_configuration: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dscMetaConfiguration',
                type: {
                  name: 'String'
                }
              },
              endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'endpoint',
                type: {
                  name: 'String'
                }
              },
              keys: {
                client_side_validation: true,
                required: false,
                serialized_name: 'keys',
                type: {
                  name: 'Composite',
                  class_name: 'AgentRegistrationKeys'
                }
              },
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
