Skip to content

Commit e484113

Browse files
committed
feat: regenerate services and add new default URLs
1 parent 21283bc commit e484113

File tree

18 files changed

+112
-69
lines changed

18 files changed

+112
-69
lines changed

Scripts/Services/CompareComply/V1/CompareComplyService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace IBM.Watson.CompareComply.V1
3232
public partial class CompareComplyService : BaseService
3333
{
3434
private const string serviceId = "compare_comply";
35-
private const string defaultServiceUrl = "https://gateway.watsonplatform.net/compare-comply/api";
35+
private const string defaultServiceUrl = "https://api.us-south.compare-comply.watson.cloud.ibm.com";
3636

3737
#region VersionDate
3838
private string versionDate;

Scripts/Services/Discovery/V1/DiscoveryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace IBM.Watson.Discovery.V1
3232
public partial class DiscoveryService : BaseService
3333
{
3434
private const string serviceId = "discovery";
35-
private const string defaultServiceUrl = "https://gateway.watsonplatform.net/discovery/api";
35+
private const string defaultServiceUrl = "https://api.us-south.discovery.watson.cloud.ibm.com";
3636

3737
#region VersionDate
3838
private string versionDate;

Scripts/Services/NaturalLanguageClassifier/V1/NaturalLanguageClassifierService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace IBM.Watson.NaturalLanguageClassifier.V1
3232
public partial class NaturalLanguageClassifierService : BaseService
3333
{
3434
private const string serviceId = "natural_language_classifier";
35-
private const string defaultServiceUrl = "https://gateway.watsonplatform.net/natural-language-classifier/api";
35+
private const string defaultServiceUrl = "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com";
3636

3737

3838
#region DisableSslVerification
@@ -507,4 +507,4 @@ private void OnDeleteClassifierResponse(RESTConnector.Request req, RESTConnector
507507
((RequestObject<object>)req).Callback(response, resp.Error);
508508
}
509509
}
510-
}
510+
}

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/CategoriesResult.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2525
public class CategoriesResult
2626
{
2727
/// <summary>
28-
/// The path to the category through the 5-level taxonomy hierarchy. For the complete list of categories, see
29-
/// the [Categories
30-
/// hierarchy](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy)
31-
/// documentation.
28+
/// The path to the category through the 5-level taxonomy hierarchy. For more information about the categories,
29+
/// see [Categories
30+
/// hierarchy](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-categories#categories-hierarchy).
3231
/// </summary>
3332
[JsonProperty("label", NullValueHandling = NullValueHandling.Ignore)]
3433
public string Label { get; set; }

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/EntitiesOptions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2121
{
2222
/// <summary>
23-
/// Identifies people, cities, organizations, and other entities in the content. See [Entity types and
23+
/// Identifies people, cities, organizations, and other entities in the content. For more information, see [Entity
24+
/// types and
2425
/// subtypes](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types).
2526
///
2627
/// Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Swedish.

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/Features.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public class Features
4242
[JsonProperty("emotion", NullValueHandling = NullValueHandling.Ignore)]
4343
public EmotionOptions Emotion { get; set; }
4444
/// <summary>
45-
/// Identifies people, cities, organizations, and other entities in the content. See [Entity types and
45+
/// Identifies people, cities, organizations, and other entities in the content. For more information, see
46+
/// [Entity types and
4647
/// subtypes](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-entity-types).
4748
///
4849
/// Supported languages: English, French, German, Italian, Japanese, Korean, Portuguese, Russian, Spanish,
@@ -66,7 +67,7 @@ public class Features
6667
public MetadataOptions Metadata { get; set; }
6768
/// <summary>
6869
/// Recognizes when two entities are related and identifies the type of relation. For example, an `awardedTo`
69-
/// relation might connect the entities "Nobel Prize" and "Albert Einstein". See [Relation
70+
/// relation might connect the entities "Nobel Prize" and "Albert Einstein". For more information, see [Relation
7071
/// types](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relations).
7172
///
7273
/// Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian,

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/Model.cs

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,39 @@ public class Model
2828
/// <summary>
2929
/// When the status is `available`, the model is ready to use.
3030
/// </summary>
31+
public class StatusValue
32+
{
33+
/// <summary>
34+
/// Constant STARTING for starting
35+
/// </summary>
36+
public const string STARTING = "starting";
37+
/// <summary>
38+
/// Constant TRAINING for training
39+
/// </summary>
40+
public const string TRAINING = "training";
41+
/// <summary>
42+
/// Constant DEPLOYING for deploying
43+
/// </summary>
44+
public const string DEPLOYING = "deploying";
45+
/// <summary>
46+
/// Constant AVAILABLE for available
47+
/// </summary>
48+
public const string AVAILABLE = "available";
49+
/// <summary>
50+
/// Constant ERROR for error
51+
/// </summary>
52+
public const string ERROR = "error";
53+
/// <summary>
54+
/// Constant DELETED for deleted
55+
/// </summary>
56+
public const string DELETED = "deleted";
57+
58+
}
59+
60+
/// <summary>
61+
/// When the status is `available`, the model is ready to use.
62+
/// Constants for possible values can be found using Model.StatusValue
63+
/// </summary>
3164
[JsonProperty("status", NullValueHandling = NullValueHandling.Ignore)]
3265
public string Status { get; set; }
3366
/// <summary>
@@ -36,7 +69,7 @@ public class Model
3669
[JsonProperty("model_id", NullValueHandling = NullValueHandling.Ignore)]
3770
public string ModelId { get; set; }
3871
/// <summary>
39-
/// ISO 639-1 code indicating the language of the model.
72+
/// ISO 639-1 code that indicates the language of the model.
4073
/// </summary>
4174
[JsonProperty("language", NullValueHandling = NullValueHandling.Ignore)]
4275
public string Language { get; set; }

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/RelationsOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2121
{
2222
/// <summary>
2323
/// Recognizes when two entities are related and identifies the type of relation. For example, an `awardedTo`
24-
/// relation might connect the entities "Nobel Prize" and "Albert Einstein". See [Relation
24+
/// relation might connect the entities "Nobel Prize" and "Albert Einstein". For more information, see [Relation
2525
/// types](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-relations).
2626
///
2727
/// Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian, and

Scripts/Services/NaturalLanguageUnderstanding/V1/Model/TokenResult.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2018, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -26,7 +26,7 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1.Model
2626
public class TokenResult
2727
{
2828
/// <summary>
29-
/// The part of speech of the token. For descriptions of the values, see [Universal Dependencies POS
29+
/// The part of speech of the token. For more information about the values, see [Universal Dependencies POS
3030
/// tags](https://universaldependencies.org/u/pos/).
3131
/// </summary>
3232
public class PartOfSpeechValue
@@ -103,7 +103,7 @@ public class PartOfSpeechValue
103103
}
104104

105105
/// <summary>
106-
/// The part of speech of the token. For descriptions of the values, see [Universal Dependencies POS
106+
/// The part of speech of the token. For more information about the values, see [Universal Dependencies POS
107107
/// tags](https://universaldependencies.org/u/pos/).
108108
/// Constants for possible values can be found using TokenResult.PartOfSpeechValue
109109
/// </summary>

Scripts/Services/NaturalLanguageUnderstanding/V1/NaturalLanguageUnderstandingService.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1
3232
public partial class NaturalLanguageUnderstandingService : BaseService
3333
{
3434
private const string serviceId = "natural_language_understanding";
35-
private const string defaultServiceUrl = "https://gateway.watsonplatform.net/natural-language-understanding/api";
35+
private const string defaultServiceUrl = "https://api.us-south.natural-language-understanding.watson.cloud.ibm.com";
3636

3737
#region VersionDate
3838
private string versionDate;
@@ -101,7 +101,7 @@ public NaturalLanguageUnderstandingService(string versionDate, Authenticator aut
101101
/// - Relations
102102
/// - Semantic roles
103103
/// - Sentiment
104-
/// - Syntax (Experimental).
104+
/// - Syntax.
105105
///
106106
/// If a language for the input text is not specified with the `language` parameter, the service [automatically
107107
/// detects the
@@ -115,10 +115,10 @@ public NaturalLanguageUnderstandingService(string versionDate, Authenticator aut
115115
/// (optional)</param>
116116
/// <param name="url">The webpage to analyze. One of the `text`, `html`, or `url` parameters is required.
117117
/// (optional)</param>
118-
/// <param name="clean">Set this to `false` to disable webpage cleaning. To learn more about webpage cleaning,
119-
/// see the [Analyzing
120-
/// webpages](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages)
121-
/// documentation. (optional, default to true)</param>
118+
/// <param name="clean">Set this to `false` to disable webpage cleaning. For more information about webpage
119+
/// cleaning, see [Analyzing
120+
/// webpages](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages).
121+
/// (optional, default to true)</param>
122122
/// <param name="xpath">An [XPath
123123
/// query](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-analyzing-webpages#xpath)
124124
/// to perform on `html` or `url` input. Results of the query will be appended to the cleaned webpage text
@@ -129,10 +129,10 @@ public NaturalLanguageUnderstandingService(string versionDate, Authenticator aut
129129
/// <param name="returnAnalyzedText">Whether or not to return the analyzed text. (optional, default to
130130
/// false)</param>
131131
/// <param name="language">ISO 639-1 code that specifies the language of your text. This overrides automatic
132-
/// language detection. Language support differs depending on the features you include in your analysis. See
133-
/// [Language
134-
/// support](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-language-support)
135-
/// for more information. (optional)</param>
132+
/// language detection. Language support differs depending on the features you include in your analysis. For
133+
/// more information, see [Language
134+
/// support](https://cloud.ibm.com/docs/natural-language-understanding?topic=natural-language-understanding-language-support).
135+
/// (optional)</param>
136136
/// <param name="limitTextCharacters">Sets the maximum number of characters that are processed by the service.
137137
/// (optional)</param>
138138
/// <returns><see cref="AnalysisResults" />AnalysisResults</returns>
@@ -357,4 +357,4 @@ private void OnDeleteModelResponse(RESTConnector.Request req, RESTConnector.Resp
357357
((RequestObject<DeleteModelResults>)req).Callback(response, resp.Error);
358358
}
359359
}
360-
}
360+
}

0 commit comments

Comments
 (0)