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

module Azure::Synapse::Mgmt::V2019_06_01_preview
  module Models
    #
    # Properties of integration runtime node.
    #
    class ManagedIntegrationRuntimeNode

      include MsRestAzure

      # @return [String] The managed integration runtime node id.
      attr_accessor :node_id

      # @return [ManagedIntegrationRuntimeNodeStatus] The managed integration
      # runtime node status. Possible values include: 'Starting', 'Available',
      # 'Recycling', 'Unavailable'
      attr_accessor :status

      # @return [Array<ManagedIntegrationRuntimeError>] The errors that
      # occurred on this integration runtime node.
      attr_accessor :errors


      #
      # Mapper for ManagedIntegrationRuntimeNode class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedIntegrationRuntimeNode',
          type: {
            name: 'Composite',
            class_name: 'ManagedIntegrationRuntimeNode',
            model_properties: {
              node_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'nodeId',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'status',
                type: {
                  name: 'String'
                }
              },
              errors: {
                client_side_validation: true,
                required: false,
                serialized_name: 'errors',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ManagedIntegrationRuntimeErrorElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ManagedIntegrationRuntimeError'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
