# 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::ADHybridHealthService::Mgmt::V2014_01_01
  module Models
    #
    # The agent details.
    #
    class Agent

      include MsRestAzure

      # @return [String] The tenant Id.
      attr_accessor :tenant_id

      # @return [String] The machine Id.
      attr_accessor :machine_id

      # @return The agent credential details.
      attr_accessor :credential

      # @return [String] The machine name.
      attr_accessor :machine_name

      # @return [String] The agent version.
      attr_accessor :agent_version

      # @return [DateTime] The date and time, in UTC, when the agent was
      # created.
      attr_accessor :created_date

      # @return [String]  The connector hash key.
      attr_accessor :key


      #
      # Mapper for Agent class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Agent',
          type: {
            name: 'Composite',
            class_name: 'Agent',
            model_properties: {
              tenant_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tenantId',
                type: {
                  name: 'String'
                }
              },
              machine_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'machineId',
                type: {
                  name: 'String'
                }
              },
              credential: {
                client_side_validation: true,
                required: false,
                serialized_name: 'credential',
                type: {
                  name: 'Object'
                }
              },
              machine_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'machineName',
                type: {
                  name: 'String'
                }
              },
              agent_version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'agentVersion',
                type: {
                  name: 'String'
                }
              },
              created_date: {
                client_side_validation: true,
                required: false,
                serialized_name: 'createdDate',
                type: {
                  name: 'DateTime'
                }
              },
              key: {
                client_side_validation: true,
                required: false,
                serialized_name: 'key',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
