# 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::DataFactory::Mgmt::V2017_09_01_preview
  module Models
    #
    # Properties of managed integration runtime operation result.
    #
    class ManagedIntegrationRuntimeOperationResult

      include MsRestAzure

      # @return [String] The operation type. Could be start or stop.
      attr_accessor :type

      # @return [DateTime] The start time of the operation.
      attr_accessor :start_time

      # @return [String] The operation result.
      attr_accessor :result

      # @return [String] The error code.
      attr_accessor :error_code

      # @return [Array<String>] Managed integration runtime error parameters.
      attr_accessor :parameters

      # @return [String] The activity id for the operation request.
      attr_accessor :activity_id


      #
      # Mapper for ManagedIntegrationRuntimeOperationResult class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagedIntegrationRuntimeOperationResult',
          type: {
            name: 'Composite',
            class_name: 'ManagedIntegrationRuntimeOperationResult',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              start_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'startTime',
                type: {
                  name: 'DateTime'
                }
              },
              result: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'result',
                type: {
                  name: 'String'
                }
              },
              error_code: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'errorCode',
                type: {
                  name: 'String'
                }
              },
              parameters: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'parameters',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              activity_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'activityId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
