-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
VersionInfo.cs
164 lines (147 loc) · 6.52 KB
/
VersionInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Object model of an application version.
/// </summary>
public partial class VersionInfo
{
/// <summary>
/// Initializes a new instance of the VersionInfo class.
/// </summary>
public VersionInfo()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the VersionInfo class.
/// </summary>
/// <param name="version">The version ID. E.g.: "0.1"</param>
/// <param name="trainingStatus">The current training status. Possible
/// values include: 'NeedsTraining', 'InProgress', 'Trained'</param>
/// <param name="createdDateTime">The version's creation
/// timestamp.</param>
/// <param name="lastModifiedDateTime">Timestamp of the last
/// update.</param>
/// <param name="lastTrainedDateTime">Timestamp of the last time the
/// model was trained.</param>
/// <param name="lastPublishedDateTime">Timestamp when was last
/// published.</param>
/// <param name="endpointUrl">The Runtime endpoint URL for this model
/// version.</param>
/// <param name="assignedEndpointKey">The endpoint key.</param>
/// <param name="externalApiKeys">External keys.</param>
/// <param name="intentsCount">Number of intents in this model.</param>
/// <param name="entitiesCount">Number of entities in this
/// model.</param>
/// <param name="endpointHitsCount">Number of calls made to this
/// endpoint.</param>
public VersionInfo(string version, TrainingStatus trainingStatus, System.DateTime? createdDateTime = default(System.DateTime?), System.DateTime? lastModifiedDateTime = default(System.DateTime?), System.DateTime? lastTrainedDateTime = default(System.DateTime?), System.DateTime? lastPublishedDateTime = default(System.DateTime?), string endpointUrl = default(string), IDictionary<string, string> assignedEndpointKey = default(IDictionary<string, string>), object externalApiKeys = default(object), int? intentsCount = default(int?), int? entitiesCount = default(int?), int? endpointHitsCount = default(int?))
{
Version = version;
CreatedDateTime = createdDateTime;
LastModifiedDateTime = lastModifiedDateTime;
LastTrainedDateTime = lastTrainedDateTime;
LastPublishedDateTime = lastPublishedDateTime;
EndpointUrl = endpointUrl;
AssignedEndpointKey = assignedEndpointKey;
ExternalApiKeys = externalApiKeys;
IntentsCount = intentsCount;
EntitiesCount = entitiesCount;
EndpointHitsCount = endpointHitsCount;
TrainingStatus = trainingStatus;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the version ID. E.g.: "0.1"
/// </summary>
[JsonProperty(PropertyName = "version")]
public string Version { get; set; }
/// <summary>
/// Gets or sets the version's creation timestamp.
/// </summary>
[JsonProperty(PropertyName = "createdDateTime")]
public System.DateTime? CreatedDateTime { get; set; }
/// <summary>
/// Gets or sets timestamp of the last update.
/// </summary>
[JsonProperty(PropertyName = "lastModifiedDateTime")]
public System.DateTime? LastModifiedDateTime { get; set; }
/// <summary>
/// Gets or sets timestamp of the last time the model was trained.
/// </summary>
[JsonProperty(PropertyName = "lastTrainedDateTime")]
public System.DateTime? LastTrainedDateTime { get; set; }
/// <summary>
/// Gets or sets timestamp when was last published.
/// </summary>
[JsonProperty(PropertyName = "lastPublishedDateTime")]
public System.DateTime? LastPublishedDateTime { get; set; }
/// <summary>
/// Gets or sets the Runtime endpoint URL for this model version.
/// </summary>
[JsonProperty(PropertyName = "endpointUrl")]
public string EndpointUrl { get; set; }
/// <summary>
/// Gets or sets the endpoint key.
/// </summary>
[JsonProperty(PropertyName = "assignedEndpointKey")]
public IDictionary<string, string> AssignedEndpointKey { get; set; }
/// <summary>
/// Gets or sets external keys.
/// </summary>
[JsonProperty(PropertyName = "externalApiKeys")]
public object ExternalApiKeys { get; set; }
/// <summary>
/// Gets or sets number of intents in this model.
/// </summary>
[JsonProperty(PropertyName = "intentsCount")]
public int? IntentsCount { get; set; }
/// <summary>
/// Gets or sets number of entities in this model.
/// </summary>
[JsonProperty(PropertyName = "entitiesCount")]
public int? EntitiesCount { get; set; }
/// <summary>
/// Gets or sets number of calls made to this endpoint.
/// </summary>
[JsonProperty(PropertyName = "endpointHitsCount")]
public int? EndpointHitsCount { get; set; }
/// <summary>
/// Gets or sets the current training status. Possible values include:
/// 'NeedsTraining', 'InProgress', 'Trained'
/// </summary>
[JsonProperty(PropertyName = "trainingStatus")]
public TrainingStatus TrainingStatus { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Version == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Version");
}
}
}
}