| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// OCR result of the read operation. |
| | 18 | | /// </summary> |
| | 19 | | public partial class ReadOperationResult |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the ReadOperationResult class. |
| | 23 | | /// </summary> |
| 0 | 24 | | public ReadOperationResult() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the ReadOperationResult class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="status">Status of the read operation. Possible values |
| | 33 | | /// include: 'notStarted', 'running', 'failed', 'succeeded'</param> |
| | 34 | | /// <param name="createdDateTime">Get UTC date time the batch operation |
| | 35 | | /// was submitted.</param> |
| | 36 | | /// <param name="lastUpdatedDateTime">Get last updated UTC date time of |
| | 37 | | /// this batch operation.</param> |
| | 38 | | /// <param name="analyzeResult">Analyze batch operation result.</param> |
| 0 | 39 | | public ReadOperationResult(OperationStatusCodes status = default(OperationStatusCodes), string createdDateTime = |
| | 40 | | { |
| 0 | 41 | | Status = status; |
| 0 | 42 | | CreatedDateTime = createdDateTime; |
| 0 | 43 | | LastUpdatedDateTime = lastUpdatedDateTime; |
| 0 | 44 | | AnalyzeResult = analyzeResult; |
| | 45 | | CustomInit(); |
| 0 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets status of the read operation. Possible values include: |
| | 55 | | /// 'notStarted', 'running', 'failed', 'succeeded' |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "status")] |
| 0 | 58 | | public OperationStatusCodes Status { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets get UTC date time the batch operation was submitted. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "createdDateTime")] |
| 0 | 64 | | public string CreatedDateTime { get; set; } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// Gets or sets get last updated UTC date time of this batch |
| | 68 | | /// operation. |
| | 69 | | /// </summary> |
| | 70 | | [JsonProperty(PropertyName = "lastUpdatedDateTime")] |
| 0 | 71 | | public string LastUpdatedDateTime { get; set; } |
| | 72 | |
|
| | 73 | | /// <summary> |
| | 74 | | /// Gets or sets analyze batch operation result. |
| | 75 | | /// </summary> |
| | 76 | | [JsonProperty(PropertyName = "analyzeResult")] |
| 0 | 77 | | public AnalyzeResults AnalyzeResult { get; set; } |
| | 78 | |
|
| | 79 | | /// <summary> |
| | 80 | | /// Validate the object. |
| | 81 | | /// </summary> |
| | 82 | | /// <exception cref="Rest.ValidationException"> |
| | 83 | | /// Thrown if validation fails |
| | 84 | | /// </exception> |
| | 85 | | public virtual void Validate() |
| | 86 | | { |
| 0 | 87 | | if (AnalyzeResult != null) |
| | 88 | | { |
| 0 | 89 | | AnalyzeResult.Validate(); |
| | 90 | | } |
| 0 | 91 | | } |
| | 92 | | } |
| | 93 | | } |