| | 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.Knowledge.QnAMaker.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Record to track long running operation. |
| | 18 | | /// </summary> |
| | 19 | | public partial class Operation |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the Operation class. |
| | 23 | | /// </summary> |
| 0 | 24 | | public Operation() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 0 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the Operation class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="operationState">Operation state. Possible values |
| | 33 | | /// include: 'Failed', 'NotStarted', 'Running', 'Succeeded'</param> |
| | 34 | | /// <param name="createdTimestamp">Timestamp when the operation was |
| | 35 | | /// created.</param> |
| | 36 | | /// <param name="lastActionTimestamp">Timestamp when the current state |
| | 37 | | /// was entered.</param> |
| | 38 | | /// <param name="resourceLocation">Relative URI to the target resource |
| | 39 | | /// location for completed resources.</param> |
| | 40 | | /// <param name="userId">User Id</param> |
| | 41 | | /// <param name="operationId">Operation Id.</param> |
| | 42 | | /// <param name="errorResponse">Error details in case of |
| | 43 | | /// failures.</param> |
| 0 | 44 | | public Operation(string operationState = default(string), string createdTimestamp = default(string), string last |
| | 45 | | { |
| 0 | 46 | | OperationState = operationState; |
| 0 | 47 | | CreatedTimestamp = createdTimestamp; |
| 0 | 48 | | LastActionTimestamp = lastActionTimestamp; |
| 0 | 49 | | ResourceLocation = resourceLocation; |
| 0 | 50 | | UserId = userId; |
| 0 | 51 | | OperationId = operationId; |
| 0 | 52 | | ErrorResponse = errorResponse; |
| | 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 operation state. Possible values include: 'Failed', |
| | 63 | | /// 'NotStarted', 'Running', 'Succeeded' |
| | 64 | | /// </summary> |
| | 65 | | [JsonProperty(PropertyName = "operationState")] |
| 0 | 66 | | public string OperationState { get; set; } |
| | 67 | |
|
| | 68 | | /// <summary> |
| | 69 | | /// Gets or sets timestamp when the operation was created. |
| | 70 | | /// </summary> |
| | 71 | | [JsonProperty(PropertyName = "createdTimestamp")] |
| 0 | 72 | | public string CreatedTimestamp { get; set; } |
| | 73 | |
|
| | 74 | | /// <summary> |
| | 75 | | /// Gets or sets timestamp when the current state was entered. |
| | 76 | | /// </summary> |
| | 77 | | [JsonProperty(PropertyName = "lastActionTimestamp")] |
| 0 | 78 | | public string LastActionTimestamp { get; set; } |
| | 79 | |
|
| | 80 | | /// <summary> |
| | 81 | | /// Gets or sets relative URI to the target resource location for |
| | 82 | | /// completed resources. |
| | 83 | | /// </summary> |
| | 84 | | [JsonProperty(PropertyName = "resourceLocation")] |
| 0 | 85 | | public string ResourceLocation { get; set; } |
| | 86 | |
|
| | 87 | | /// <summary> |
| | 88 | | /// Gets or sets user Id |
| | 89 | | /// </summary> |
| | 90 | | [JsonProperty(PropertyName = "userId")] |
| 0 | 91 | | public string UserId { get; set; } |
| | 92 | |
|
| | 93 | | /// <summary> |
| | 94 | | /// Gets or sets operation Id. |
| | 95 | | /// </summary> |
| | 96 | | [JsonProperty(PropertyName = "operationId")] |
| 0 | 97 | | public string OperationId { get; set; } |
| | 98 | |
|
| | 99 | | /// <summary> |
| | 100 | | /// Gets or sets error details in case of failures. |
| | 101 | | /// </summary> |
| | 102 | | [JsonProperty(PropertyName = "errorResponse")] |
| 0 | 103 | | public ErrorResponse ErrorResponse { get; set; } |
| | 104 | |
|
| | 105 | | } |
| | 106 | | } |