| | 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.Face.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Training status object. |
| | 18 | | /// </summary> |
| | 19 | | public partial class TrainingStatus |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the TrainingStatus class. |
| | 23 | | /// </summary> |
| 22 | 24 | | public TrainingStatus() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 22 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the TrainingStatus class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="status">Training status: notstarted, running, |
| | 33 | | /// succeeded, failed. If the training process is waiting to perform, |
| | 34 | | /// the status is notstarted. If the training is ongoing, the status is |
| | 35 | | /// running. Status succeed means this person group or large person |
| | 36 | | /// group is ready for Face - Identify, or this large face list is |
| | 37 | | /// ready for Face - Find Similar. Status failed is often caused by no |
| | 38 | | /// person or no persisted face exist in the person group or large |
| | 39 | | /// person group, or no persisted face exist in the large face list. |
| | 40 | | /// Possible values include: 'nonstarted', 'running', 'succeeded', |
| | 41 | | /// 'failed'</param> |
| | 42 | | /// <param name="created">A combined UTC date and time string that |
| | 43 | | /// describes the created time of the person group, large person group |
| | 44 | | /// or large face list.</param> |
| | 45 | | /// <param name="lastAction">A combined UTC date and time string that |
| | 46 | | /// describes the last modify time of the person group, large person |
| | 47 | | /// group or large face list, could be null value when the group is not |
| | 48 | | /// successfully trained.</param> |
| | 49 | | /// <param name="lastSuccessfulTraining">A combined UTC date and time |
| | 50 | | /// string that describes the last successful training time of the |
| | 51 | | /// person group, large person group or large face list.</param> |
| | 52 | | /// <param name="message">Show failure message when training failed |
| | 53 | | /// (omitted when training succeed).</param> |
| 0 | 54 | | public TrainingStatus(TrainingStatusType status, System.DateTime created, System.DateTime? lastAction = default( |
| | 55 | | { |
| 0 | 56 | | Status = status; |
| 0 | 57 | | Created = created; |
| 0 | 58 | | LastAction = lastAction; |
| 0 | 59 | | LastSuccessfulTraining = lastSuccessfulTraining; |
| 0 | 60 | | Message = message; |
| | 61 | | CustomInit(); |
| 0 | 62 | | } |
| | 63 | |
|
| | 64 | | /// <summary> |
| | 65 | | /// An initialization method that performs custom operations like setting defaults |
| | 66 | | /// </summary> |
| | 67 | | partial void CustomInit(); |
| | 68 | |
|
| | 69 | | /// <summary> |
| | 70 | | /// Gets or sets training status: notstarted, running, succeeded, |
| | 71 | | /// failed. If the training process is waiting to perform, the status |
| | 72 | | /// is notstarted. If the training is ongoing, the status is running. |
| | 73 | | /// Status succeed means this person group or large person group is |
| | 74 | | /// ready for Face - Identify, or this large face list is ready for |
| | 75 | | /// Face - Find Similar. Status failed is often caused by no person or |
| | 76 | | /// no persisted face exist in the person group or large person group, |
| | 77 | | /// or no persisted face exist in the large face list. Possible values |
| | 78 | | /// include: 'nonstarted', 'running', 'succeeded', 'failed' |
| | 79 | | /// </summary> |
| | 80 | | [JsonProperty(PropertyName = "status")] |
| 100 | 81 | | public TrainingStatusType Status { get; set; } |
| | 82 | |
|
| | 83 | | /// <summary> |
| | 84 | | /// Gets or sets a combined UTC date and time string that describes the |
| | 85 | | /// created time of the person group, large person group or large face |
| | 86 | | /// list. |
| | 87 | | /// </summary> |
| | 88 | | [JsonProperty(PropertyName = "createdDateTime")] |
| 0 | 89 | | public System.DateTime Created { get; set; } |
| | 90 | |
|
| | 91 | | /// <summary> |
| | 92 | | /// Gets or sets a combined UTC date and time string that describes the |
| | 93 | | /// last modify time of the person group, large person group or large |
| | 94 | | /// face list, could be null value when the group is not successfully |
| | 95 | | /// trained. |
| | 96 | | /// </summary> |
| | 97 | | [JsonProperty(PropertyName = "lastActionDateTime")] |
| 0 | 98 | | public System.DateTime? LastAction { get; set; } |
| | 99 | |
|
| | 100 | | /// <summary> |
| | 101 | | /// Gets or sets a combined UTC date and time string that describes the |
| | 102 | | /// last successful training time of the person group, large person |
| | 103 | | /// group or large face list. |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "lastSuccessfulTrainingDateTime")] |
| 0 | 106 | | public System.DateTime? LastSuccessfulTraining { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets show failure message when training failed (omitted |
| | 110 | | /// when training succeed). |
| | 111 | | /// </summary> |
| | 112 | | [JsonProperty(PropertyName = "message")] |
| 0 | 113 | | public string Message { get; set; } |
| | 114 | |
|
| | 115 | | /// <summary> |
| | 116 | | /// Validate the object. |
| | 117 | | /// </summary> |
| | 118 | | /// <exception cref="Rest.ValidationException"> |
| | 119 | | /// Thrown if validation fails |
| | 120 | | /// </exception> |
| | 121 | | public virtual void Validate() |
| | 122 | | { |
| 0 | 123 | | } |
| | 124 | | } |
| | 125 | | } |