| | 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.Personalizer.Models |
| | 12 | | { |
| | 13 | | using Microsoft.Rest; |
| | 14 | | using Newtonsoft.Json; |
| | 15 | | using System.Collections; |
| | 16 | | using System.Collections.Generic; |
| | 17 | | using System.Linq; |
| | 18 | |
|
| | 19 | | public partial class Evaluation |
| | 20 | | { |
| | 21 | | /// <summary> |
| | 22 | | /// Initializes a new instance of the Evaluation class. |
| | 23 | | /// </summary> |
| 96 | 24 | | public Evaluation() |
| | 25 | | { |
| | 26 | | CustomInit(); |
| 96 | 27 | | } |
| | 28 | |
|
| | 29 | | /// <summary> |
| | 30 | | /// Initializes a new instance of the Evaluation class. |
| | 31 | | /// </summary> |
| | 32 | | /// <param name="status">Possible values include: 'completed', |
| | 33 | | /// 'pending', 'failed', 'notSubmitted'</param> |
| 0 | 34 | | public Evaluation(string id = default(string), string name = default(string), System.DateTime? startTime = defau |
| | 35 | | { |
| 0 | 36 | | Id = id; |
| 0 | 37 | | Name = name; |
| 0 | 38 | | StartTime = startTime; |
| 0 | 39 | | EndTime = endTime; |
| 0 | 40 | | JobId = jobId; |
| 0 | 41 | | Status = status; |
| 0 | 42 | | PolicyResults = policyResults; |
| 0 | 43 | | FeatureImportance = featureImportance; |
| | 44 | | CustomInit(); |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// An initialization method that performs custom operations like setting defaults |
| | 49 | | /// </summary> |
| | 50 | | partial void CustomInit(); |
| | 51 | |
|
| | 52 | | /// <summary> |
| | 53 | | /// </summary> |
| | 54 | | [JsonProperty(PropertyName = "id")] |
| 98 | 55 | | public string Id { get; private set; } |
| | 56 | |
|
| | 57 | | /// <summary> |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "name")] |
| 100 | 60 | | public string Name { get; private set; } |
| | 61 | |
|
| | 62 | | /// <summary> |
| | 63 | | /// </summary> |
| | 64 | | [JsonProperty(PropertyName = "startTime")] |
| 0 | 65 | | public System.DateTime? StartTime { get; private set; } |
| | 66 | |
|
| | 67 | | /// <summary> |
| | 68 | | /// </summary> |
| | 69 | | [JsonProperty(PropertyName = "endTime")] |
| 0 | 70 | | public System.DateTime? EndTime { get; private set; } |
| | 71 | |
|
| | 72 | | /// <summary> |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "jobId")] |
| 0 | 75 | | public string JobId { get; private set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets possible values include: 'completed', 'pending', 'failed', |
| | 79 | | /// 'notSubmitted' |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "status")] |
| 0 | 82 | | public string Status { get; private set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// </summary> |
| | 86 | | [JsonProperty(PropertyName = "policyResults")] |
| 192 | 87 | | public IList<PolicyResult> PolicyResults { get; set; } |
| | 88 | |
|
| | 89 | | /// <summary> |
| | 90 | | /// </summary> |
| | 91 | | [JsonProperty(PropertyName = "featureImportance")] |
| 192 | 92 | | public IList<IList<string>> FeatureImportance { get; set; } |
| | 93 | |
|
| | 94 | | /// <summary> |
| | 95 | | /// Validate the object. |
| | 96 | | /// </summary> |
| | 97 | | /// <exception cref="ValidationException"> |
| | 98 | | /// Thrown if validation fails |
| | 99 | | /// </exception> |
| | 100 | | public virtual void Validate() |
| | 101 | | { |
| 0 | 102 | | if (Id != null) |
| | 103 | | { |
| 0 | 104 | | if (Id.Length > 256) |
| | 105 | | { |
| 0 | 106 | | throw new ValidationException(ValidationRules.MaxLength, "Id", 256); |
| | 107 | | } |
| | 108 | | } |
| 0 | 109 | | if (Name != null) |
| | 110 | | { |
| 0 | 111 | | if (Name.Length > 256) |
| | 112 | | { |
| 0 | 113 | | throw new ValidationException(ValidationRules.MaxLength, "Name", 256); |
| | 114 | | } |
| | 115 | | } |
| 0 | 116 | | } |
| | 117 | | } |
| | 118 | | } |