# 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::CognitiveServices::ContentModerator::V1_0
  module Models
    #
    # The Job object.
    #
    class Job

      include MsRestAzure

      # @return [String] The job id.
      attr_accessor :id

      # @return [String] The team name associated with the job.
      attr_accessor :team_name

      # @return [String] The status string (<Pending, Failed, Completed>).
      attr_accessor :status

      # @return [String] The Id of the workflow.
      attr_accessor :workflow_id

      # @return [String] Type of the content.
      attr_accessor :type

      # @return [String] The callback endpoint.
      attr_accessor :call_back_endpoint

      # @return [String] Review Id if one is created.
      attr_accessor :review_id

      # @return [Array<KeyValuePair>] Array of KeyValue pairs.
      attr_accessor :result_meta_data

      # @return [Array<JobExecutionReportDetails>] Job execution report- Array
      # of KeyValue pairs object.
      attr_accessor :job_execution_report


      #
      # Mapper for Job class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Job',
          type: {
            name: 'Composite',
            class_name: 'Job',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Id',
                type: {
                  name: 'String'
                }
              },
              team_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TeamName',
                type: {
                  name: 'String'
                }
              },
              status: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Status',
                type: {
                  name: 'String'
                }
              },
              workflow_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'WorkflowId',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Type',
                type: {
                  name: 'String'
                }
              },
              call_back_endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CallBackEndpoint',
                type: {
                  name: 'String'
                }
              },
              review_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ReviewId',
                type: {
                  name: 'String'
                }
              },
              result_meta_data: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ResultMetaData',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'KeyValuePairElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'KeyValuePair'
                      }
                  }
                }
              },
              job_execution_report: {
                client_side_validation: true,
                required: false,
                serialized_name: 'JobExecutionReport',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'JobExecutionReportDetailsElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'JobExecutionReportDetails'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
