Class: Azure::CognitiveServices::ContentModerator::V1_0::Models::Job

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb

Overview

The Job object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#call_back_endpointString

Returns The callback endpoint.

Returns:

  • (String)

    The callback endpoint.



31
32
33
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 31

def call_back_endpoint
  @call_back_endpoint
end

#idString

Returns The job id.

Returns:

  • (String)

    The job id.



16
17
18
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 16

def id
  @id
end

#job_execution_reportArray<JobExecutionReportDetails>

of KeyValue pairs object.

Returns:



41
42
43
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 41

def job_execution_report
  @job_execution_report
end

#result_meta_dataArray<KeyValuePair>

Returns Array of KeyValue pairs.

Returns:



37
38
39
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 37

def 
  @result_meta_data
end

#review_idString

Returns Review Id if one is created.

Returns:

  • (String)

    Review Id if one is created.



34
35
36
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 34

def review_id
  @review_id
end

#statusString

Returns The status string (<Pending, Failed, Completed>).

Returns:

  • (String)

    The status string (<Pending, Failed, Completed>).



22
23
24
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 22

def status
  @status
end

#team_nameString

Returns The team name associated with the job.

Returns:

  • (String)

    The team name associated with the job.



19
20
21
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 19

def team_name
  @team_name
end

#typeString

Returns Type of the content.

Returns:

  • (String)

    Type of the content.



28
29
30
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 28

def type
  @type
end

#workflow_idString

Returns The Id of the workflow.

Returns:

  • (String)

    The Id of the workflow.



25
26
27
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 25

def workflow_id
  @workflow_id
end

Class Method Details

.mapperObject

Mapper for Job class as Ruby Hash. This will be used for serialization/deserialization.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/job.rb', line 48

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