# 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::Automation::Mgmt::V2015_10_31
  module Models
    #
    # Definition of hybrid runbook worker.
    #
    class HybridRunbookWorker

      include MsRestAzure

      # @return [String] Gets or sets the worker machine name.
      attr_accessor :name

      # @return [String] Gets or sets the assigned machine IP address.
      attr_accessor :ip

      # @return [DateTime] Gets or sets the registration time of the worker
      # machine.
      attr_accessor :registration_time

      # @return [DateTime] Last Heartbeat from the Worker
      attr_accessor :last_seen_date_time


      #
      # Mapper for HybridRunbookWorker class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'HybridRunbookWorker',
          type: {
            name: 'Composite',
            class_name: 'HybridRunbookWorker',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              ip: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ip',
                type: {
                  name: 'String'
                }
              },
              registration_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'registrationTime',
                type: {
                  name: 'DateTime'
                }
              },
              last_seen_date_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastSeenDateTime',
                type: {
                  name: 'DateTime'
                }
              }
            }
          }
        }
      end
    end
  end
end
