Skip to content

Commit 60b05ce

Browse files
committed
chore(Regeneration): Regenerate and run fix copyrights script
1 parent 0cf27da commit 60b05ce

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

src/IBM.Watson.Assistant.v2/Model/MessageContextSkill.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ public class MessageContextSkill
3030
/// </summary>
3131
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
3232
public Dictionary<string, object> UserDefined { get; set; }
33+
/// <summary>
34+
/// For internal use only.
35+
/// </summary>
36+
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
37+
public Dictionary<string, object> System { get; set; }
3338
}
3439

3540
}

src/IBM.Watson.Discovery.v1/DiscoveryService.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ public DetailedResponse<Collection> GetCollection(string environmentId, string c
10151015
/// </summary>
10161016
/// <param name="environmentId">The ID of the environment.</param>
10171017
/// <param name="collectionId">The ID of the collection.</param>
1018-
/// <param name="body">Input an object that allows you to update a collection. (optional)</param>
1018+
/// <param name="body">Input an object that allows you to update a collection.</param>
10191019
/// <returns><see cref="Collection" />Collection</returns>
10201020
public DetailedResponse<Collection> UpdateCollection(string environmentId, string collectionId, string name, string description = null, string configurationId = null)
10211021
{
@@ -1035,6 +1035,10 @@ public DetailedResponse<Collection> UpdateCollection(string environmentId, strin
10351035
{
10361036
collectionId = Uri.EscapeDataString(collectionId);
10371037
}
1038+
if (string.IsNullOrEmpty(name))
1039+
{
1040+
throw new ArgumentNullException("`name` is required for `UpdateCollection`");
1041+
}
10381042

10391043
if (string.IsNullOrEmpty(VersionDate))
10401044
{
@@ -2515,7 +2519,7 @@ public DetailedResponse<QueryNoticesResponse> QueryNotices(string environmentId,
25152519
/// documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-query-concepts#query-concepts).
25162520
/// </summary>
25172521
/// <param name="environmentId">The ID of the environment.</param>
2518-
/// <param name="queryLong"> (optional)</param>
2522+
/// <param name="queryLong"></param>
25192523
/// <param name="xWatsonLoggingOptOut">If `true`, queries are not stored in the Discovery **Logs** endpoint.
25202524
/// (optional, default to false)</param>
25212525
/// <returns><see cref="QueryResponse" />QueryResponse</returns>
@@ -2529,6 +2533,10 @@ public DetailedResponse<QueryResponse> FederatedQuery(string environmentId, stri
25292533
{
25302534
environmentId = Uri.EscapeDataString(environmentId);
25312535
}
2536+
if (string.IsNullOrEmpty(collectionIds))
2537+
{
2538+
throw new ArgumentNullException("`collectionIds` is required for `FederatedQuery`");
2539+
}
25322540

25332541
if (string.IsNullOrEmpty(VersionDate))
25342542
{

src/IBM.Watson.Discovery.v2/DiscoveryService.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ public DetailedResponse<object> DeleteTrainingQueries(string projectId)
938938
/// </summary>
939939
/// <param name="projectId">The ID of the project. This information can be found from the deploy page of the
940940
/// Discovery administrative tooling.</param>
941-
/// <param name="trainingQuery">An object that represents the query to be submitted. (optional)</param>
941+
/// <param name="trainingQuery">An object that represents the query to be submitted.</param>
942942
/// <returns><see cref="TrainingQuery" />TrainingQuery</returns>
943943
public DetailedResponse<TrainingQuery> CreateTrainingQuery(string projectId, string naturalLanguageQuery, List<TrainingExample> examples, string filter = null)
944944
{
@@ -950,6 +950,14 @@ public DetailedResponse<TrainingQuery> CreateTrainingQuery(string projectId, str
950950
{
951951
projectId = Uri.EscapeDataString(projectId);
952952
}
953+
if (string.IsNullOrEmpty(naturalLanguageQuery))
954+
{
955+
throw new ArgumentNullException("`naturalLanguageQuery` is required for `CreateTrainingQuery`");
956+
}
957+
if (examples == null)
958+
{
959+
throw new ArgumentNullException("`examples` is required for `CreateTrainingQuery`");
960+
}
953961

954962
if (string.IsNullOrEmpty(VersionDate))
955963
{

src/IBM.Watson.NaturalLanguageUnderstanding.v1/Model/CategoriesOptions.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ public class CategoriesOptions
3737
/// </summary>
3838
[JsonProperty("limit", NullValueHandling = NullValueHandling.Ignore)]
3939
public long? Limit { get; set; }
40-
/// <summary>
41-
/// Enter a [custom
42-
/// model](https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
43-
/// ID to override the standard categories model.
44-
/// </summary>
45-
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]
46-
public string Model { get; set; }
4740
}
4841

4942
}

0 commit comments

Comments
 (0)