-
Notifications
You must be signed in to change notification settings - Fork 124
/
Model.cs
108 lines (103 loc) · 4.07 KB
/
Model.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
/**
* (C) Copyright IBM Corp. 2017, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
using Newtonsoft.Json;
using System;
namespace IBM.Watson.NaturalLanguageUnderstanding.v1.Model
{
/// <summary>
/// Model.
/// </summary>
public class Model
{
/// <summary>
/// When the status is `available`, the model is ready to use.
/// </summary>
public class StatusEnumValue
{
/// <summary>
/// Constant STARTING for starting
/// </summary>
public const string STARTING = "starting";
/// <summary>
/// Constant TRAINING for training
/// </summary>
public const string TRAINING = "training";
/// <summary>
/// Constant DEPLOYING for deploying
/// </summary>
public const string DEPLOYING = "deploying";
/// <summary>
/// Constant AVAILABLE for available
/// </summary>
public const string AVAILABLE = "available";
/// <summary>
/// Constant ERROR for error
/// </summary>
public const string ERROR = "error";
/// <summary>
/// Constant DELETED for deleted
/// </summary>
public const string DELETED = "deleted";
}
/// <summary>
/// When the status is `available`, the model is ready to use.
/// Constants for possible values can be found using Model.StatusEnumValue
/// </summary>
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
public string Status { get; set; }
/// <summary>
/// Unique model ID.
/// </summary>
[JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
public string ModelId { get; set; }
/// <summary>
/// ISO 639-1 code that indicates the language of the model.
/// </summary>
[JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)]
public string Language { get; set; }
/// <summary>
/// Model description.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; set; }
/// <summary>
/// ID of the Watson Knowledge Studio workspace that deployed this model to Natural Language Understanding.
/// </summary>
[JsonProperty("workspace_id", NullValueHandling = NullValueHandling.Ignore)]
public string WorkspaceId { get; set; }
/// <summary>
/// The model version, if it was manually provided in Watson Knowledge Studio.
/// </summary>
[JsonProperty("model_version", NullValueHandling = NullValueHandling.Ignore)]
public string ModelVersion { get; set; }
/// <summary>
/// Deprecated — use `model_version`.
/// </summary>
[JsonProperty("version", NullValueHandling = NullValueHandling.Ignore)]
public string Version { get; set; }
/// <summary>
/// The description of the version, if it was manually provided in Watson Knowledge Studio.
/// </summary>
[JsonProperty("version_description", NullValueHandling = NullValueHandling.Ignore)]
public string VersionDescription { get; set; }
/// <summary>
/// A dateTime indicating when the model was created.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public DateTime? Created { get; set; }
}
}