Skip to content

Commit affd1f9

Browse files
committed
feat(regenerate): regenerate services using current api def
1 parent 12194cf commit affd1f9

15 files changed

+126
-206
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public AssistantService(string versionDate, Authenticator authenticator) : base(
9393
///
9494
/// Send user input to a workspace and receive a response.
9595
///
96-
/// **Note:** For most applications, there are significant advantages to using the v2 runtime API instead. These
97-
/// advantages include ease of deployment, automatic state management, versioning, and search capabilities. For
98-
/// more information, see the
96+
/// **Important:** This method has been superseded by the new v2 runtime API. The v2 API offers significant
97+
/// advantages, including ease of deployment, automatic state management, versioning, and search capabilities.
98+
/// For more information, see the
9999
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-overview).
100100
///
101101
/// There is no rate limit for this operation.
@@ -4139,8 +4139,7 @@ private void OnDeleteDialogNodeResponse(RESTConnector.Request req, RESTConnector
41394139
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
41404140
/// <param name="workspaceId">Unique identifier of the workspace.</param>
41414141
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
4142-
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
4143-
/// request_timestamp)</param>
4142+
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>
41444143
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
41454144
/// For more information, see the
41464145
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-filter-reference#filter-reference).
@@ -4241,8 +4240,7 @@ private void OnListLogsResponse(RESTConnector.Request req, RESTConnector.Respons
42414240
/// or `request.context.metadata.deployment`. For more information, see the
42424241
/// [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-filter-reference#filter-reference).</param>
42434242
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
4244-
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
4245-
/// request_timestamp)</param>
4243+
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional)</param>
42464244
/// <param name="pageLimit">The number of records to return in each page of results. (optional)</param>
42474245
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
42484246
/// <returns><see cref="LogCollection" />LogCollection</returns>

Scripts/Services/Assistant/V1/Model/DialogRuntimeResponseGeneric.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class PreferenceValue
104104
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
105105
public long? Time { get; set; }
106106
/// <summary>
107-
/// Whether to send a \"user is typing\" event during the pause.
107+
/// Whether to send a "user is typing" event during the pause.
108108
/// </summary>
109109
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
110110
public bool? Typing { get; set; }

Scripts/Services/Assistant/V2/Model/DialogRuntimeResponseGeneric.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class PreferenceValue
108108
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
109109
public long? Time { get; set; }
110110
/// <summary>
111-
/// Whether to send a \"user is typing\" event during the pause.
111+
/// Whether to send a "user is typing" event during the pause.
112112
/// </summary>
113113
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
114114
public bool? Typing { get; set; }

Scripts/Services/Discovery/V1/DiscoveryService.cs

Lines changed: 42 additions & 143 deletions
Large diffs are not rendered by default.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
using System.Collections.Generic;
19+
using Newtonsoft.Json;
20+
21+
namespace IBM.Watson.Discovery.V1.Model
22+
{
23+
/// <summary>
24+
/// An object containing an array of autocompletion suggestions.
25+
/// </summary>
26+
public class Completions
27+
{
28+
/// <summary>
29+
/// Array of autcomplete suggestion based on the provided prefix.
30+
/// </summary>
31+
[JsonProperty("completions", NullValueHandling = NullValueHandling.Ignore)]
32+
public List<string> _Completions { get; set; }
33+
}
34+
}

Scripts/Services/Discovery/V1/Model/Completions.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Discovery/V1/Model/NluEnrichmentEntities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class NluEnrichmentEntities
5757
public bool? SentenceLocations { get; set; }
5858
/// <summary>
5959
/// The enrichement model to use with entity extraction. May be a custom model provided by Watson Knowledge
60-
/// Studio, the public model for use with Knowledge Graph `en-news`, or the default public model `alchemy`.
60+
/// Studio, or the default public model `alchemy`.
6161
/// </summary>
6262
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]
6363
public string Model { get; set; }

Scripts/Services/Discovery/V1/Model/NluEnrichmentRelations.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public class NluEnrichmentRelations
2626
{
2727
/// <summary>
2828
/// *For use with `natural_language_understanding` enrichments only.* The enrichement model to use with
29-
/// relationship extraction. May be a custom model provided by Watson Knowledge Studio, the public model for use
30-
/// with Knowledge Graph `en-news`, the default is`en-news`.
29+
/// relationship extraction. May be a custom model provided by Watson Knowledge Studio, the default public model
30+
/// is`en-news`.
3131
/// </summary>
3232
[JsonProperty("model", NullValueHandling = NullValueHandling.Ignore)]
3333
public string Model { get; set; }

Scripts/Services/Discovery/V1/Model/QueryFilterType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace IBM.Watson.Discovery.V1.Model
2222
{
2323
/// <summary>
24-
/// Object containing information about excluded and included types.
24+
/// QueryFilterType.
2525
/// </summary>
2626
public class QueryFilterType
2727
{

Scripts/Services/Discovery/V1/Model/QueryRelationsArgument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
namespace IBM.Watson.Discovery.V1.Model
2222
{
2323
/// <summary>
24-
/// Object containing an array of query entities.
24+
/// QueryRelationsArgument.
2525
/// </summary>
2626
public class QueryRelationsArgument
2727
{

0 commit comments

Comments
 (0)