| | 1 | | // <auto-generated> |
| | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 4 | | // regenerated. |
| | 5 | | // </auto-generated> |
| | 6 | |
|
| | 7 | | namespace Microsoft.Azure.CognitiveServices.ContentModerator.Models |
| | 8 | | { |
| | 9 | | using Newtonsoft.Json; |
| | 10 | | using System.Collections; |
| | 11 | | using System.Collections.Generic; |
| | 12 | | using System.Linq; |
| | 13 | |
|
| | 14 | | /// <summary> |
| | 15 | | /// The Job object. |
| | 16 | | /// </summary> |
| | 17 | | public partial class Job |
| | 18 | | { |
| | 19 | | /// <summary> |
| | 20 | | /// Initializes a new instance of the Job class. |
| | 21 | | /// </summary> |
| 0 | 22 | | public Job() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 0 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the Job class. |
| | 29 | | /// </summary> |
| | 30 | | /// <param name="id">The job id.</param> |
| | 31 | | /// <param name="teamName">The team name associated with the |
| | 32 | | /// job.</param> |
| | 33 | | /// <param name="status">The status string (<Pending, Failed, |
| | 34 | | /// Completed>).</param> |
| | 35 | | /// <param name="workflowId">The Id of the workflow.</param> |
| | 36 | | /// <param name="type">Type of the content.</param> |
| | 37 | | /// <param name="callBackEndpoint">The callback endpoint.</param> |
| | 38 | | /// <param name="reviewId">Review Id if one is created.</param> |
| | 39 | | /// <param name="resultMetaData">Array of KeyValue pairs.</param> |
| | 40 | | /// <param name="jobExecutionReport">Job execution report- Array of |
| | 41 | | /// KeyValue pairs object.</param> |
| 0 | 42 | | public Job(string id = default(string), string teamName = default(string), string status = default(string), stri |
| | 43 | | { |
| 0 | 44 | | Id = id; |
| 0 | 45 | | TeamName = teamName; |
| 0 | 46 | | Status = status; |
| 0 | 47 | | WorkflowId = workflowId; |
| 0 | 48 | | Type = type; |
| 0 | 49 | | CallBackEndpoint = callBackEndpoint; |
| 0 | 50 | | ReviewId = reviewId; |
| 0 | 51 | | ResultMetaData = resultMetaData; |
| 0 | 52 | | JobExecutionReport = jobExecutionReport; |
| | 53 | | CustomInit(); |
| 0 | 54 | | } |
| | 55 | |
|
| | 56 | | /// <summary> |
| | 57 | | /// An initialization method that performs custom operations like setting defaults |
| | 58 | | /// </summary> |
| | 59 | | partial void CustomInit(); |
| | 60 | |
|
| | 61 | | /// <summary> |
| | 62 | | /// Gets or sets the job id. |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "Id")] |
| 0 | 65 | | public string Id { get; set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// Gets or sets the team name associated with the job. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "TeamName")] |
| 0 | 71 | | public string TeamName { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets the status string (&lt;Pending, Failed, |
| | 75 | | /// Completed&gt;). |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "Status")] |
| 0 | 78 | | public string Status { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets the Id of the workflow. |
| | 82 | | /// </summary> |
| | 83 | | [JsonProperty(PropertyName = "WorkflowId")] |
| 0 | 84 | | public string WorkflowId { get; set; } |
| | 85 | |
|
| | 86 | | /// <summary> |
| | 87 | | /// Gets or sets type of the content. |
| | 88 | | /// </summary> |
| | 89 | | [JsonProperty(PropertyName = "Type")] |
| 0 | 90 | | public string Type { get; set; } |
| | 91 | |
|
| | 92 | | /// <summary> |
| | 93 | | /// Gets or sets the callback endpoint. |
| | 94 | | /// </summary> |
| | 95 | | [JsonProperty(PropertyName = "CallBackEndpoint")] |
| 0 | 96 | | public string CallBackEndpoint { get; set; } |
| | 97 | |
|
| | 98 | | /// <summary> |
| | 99 | | /// Gets or sets review Id if one is created. |
| | 100 | | /// </summary> |
| | 101 | | [JsonProperty(PropertyName = "ReviewId")] |
| 0 | 102 | | public string ReviewId { get; set; } |
| | 103 | |
|
| | 104 | | /// <summary> |
| | 105 | | /// Gets or sets array of KeyValue pairs. |
| | 106 | | /// </summary> |
| | 107 | | [JsonProperty(PropertyName = "ResultMetaData")] |
| 0 | 108 | | public IList<KeyValuePair> ResultMetaData { get; set; } |
| | 109 | |
|
| | 110 | | /// <summary> |
| | 111 | | /// Gets or sets job execution report- Array of KeyValue pairs object. |
| | 112 | | /// </summary> |
| | 113 | | [JsonProperty(PropertyName = "JobExecutionReport")] |
| 0 | 114 | | public IList<JobExecutionReportDetails> JobExecutionReport { get; set; } |
| | 115 | |
|
| | 116 | | } |
| | 117 | | } |