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
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
namespace IBM.Watson.Discovery.V1.Model
2121
{
2222
/// <summary>
23-
/// Object defining a knowledge graph relationship query entity.
23+
/// QueryRelationsEntity.
2424
/// </summary>
2525
public class QueryRelationsEntity
2626
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
namespace IBM.Watson.Discovery.V1.Model
2222
{
2323
/// <summary>
24-
/// Object containing an array of documents to query.
24+
/// QueryRelationsFilter.
2525
/// </summary>
2626
public class QueryRelationsFilter
2727
{
2828
/// <summary>
29-
/// Object containing information about excluded and included types.
29+
/// Gets or Sets RelationTypes
3030
/// </summary>
3131
[JsonProperty("relation_types", NullValueHandling = NullValueHandling.Ignore)]
3232
public QueryFilterType RelationTypes { get; set; }
3333
/// <summary>
34-
/// Object containing information about excluded and included types.
34+
/// Gets or Sets EntityTypes
3535
/// </summary>
3636
[JsonProperty("entity_types", NullValueHandling = NullValueHandling.Ignore)]
3737
public QueryFilterType EntityTypes { get; set; }

Scripts/Services/Discovery/V1/Model/QueryRelationsRelationship.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 knowledge graph relationship details.
24+
/// QueryRelationsRelationship.
2525
/// </summary>
2626
public class QueryRelationsRelationship
2727
{

Scripts/Services/Discovery/V1/Model/QueryRelationsResponse.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 relationship responses.
24+
/// QueryRelationsResponse.
2525
/// </summary>
2626
public class QueryRelationsResponse
2727
{

Scripts/Services/TextToSpeech/V1/TextToSpeechService.cs

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -245,55 +245,33 @@ private void OnGetVoiceResponse(RESTConnector.Request req, RESTConnector.Respons
245245
/// The service can return audio in the following formats (MIME types).
246246
/// * Where indicated, you can optionally specify the sampling rate (`rate`) of the audio. You must specify a
247247
/// sampling rate for the `audio/l16` and `audio/mulaw` formats. A specified sampling rate must lie in the range
248-
/// of 8 kHz to 192 kHz.
248+
/// of 8 kHz to 192 kHz. Some formats restrict the sampling rate to certain values, as noted.
249249
/// * For the `audio/l16` format, you can optionally specify the endianness (`endianness`) of the audio:
250250
/// `endianness=big-endian` or `endianness=little-endian`.
251251
///
252252
/// Use the `Accept` header or the `accept` parameter to specify the requested format of the response audio. If
253253
/// you omit an audio format altogether, the service returns the audio in Ogg format with the Opus codec
254254
/// (`audio/ogg;codecs=opus`). The service always returns single-channel audio.
255-
/// * `audio/basic`
256-
///
257-
/// The service returns audio with a sampling rate of 8000 Hz.
258-
/// * `audio/flac`
259-
///
260-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
261-
/// * `audio/l16`
262-
///
263-
/// You must specify the `rate` of the audio. You can optionally specify the `endianness` of the audio. The
264-
/// default endianness is `little-endian`.
265-
/// * `audio/mp3`
266-
///
267-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
268-
/// * `audio/mpeg`
269-
///
270-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
271-
/// * `audio/mulaw`
272-
///
273-
/// You must specify the `rate` of the audio.
274-
/// * `audio/ogg`
275-
///
276-
/// The service returns the audio in the `vorbis` codec. You can optionally specify the `rate` of the audio.
277-
/// The default sampling rate is 22,050 Hz.
278-
/// * `audio/ogg;codecs=opus`
279-
///
280-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
281-
/// * `audio/ogg;codecs=vorbis`
282-
///
283-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
284-
/// * `audio/wav`
285-
///
286-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
287-
/// * `audio/webm`
288-
///
289-
/// The service returns the audio in the `opus` codec. The service returns audio with a sampling rate of
290-
/// 48,000 Hz.
291-
/// * `audio/webm;codecs=opus`
292-
///
293-
/// The service returns audio with a sampling rate of 48,000 Hz.
294-
/// * `audio/webm;codecs=vorbis`
295-
///
296-
/// You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
255+
/// * `audio/basic` - The service returns audio with a sampling rate of 8000 Hz.
256+
/// * `audio/flac` - You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
257+
/// * `audio/l16` - You must specify the `rate` of the audio. You can optionally specify the `endianness` of the
258+
/// audio. The default endianness is `little-endian`.
259+
/// * `audio/mp3` - You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
260+
/// * `audio/mpeg` - You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
261+
/// * `audio/mulaw` - You must specify the `rate` of the audio.
262+
/// * `audio/ogg` - The service returns the audio in the `vorbis` codec. You can optionally specify the `rate`
263+
/// of the audio. The default sampling rate is 22,050 Hz.
264+
/// * `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio. Only the following values
265+
/// are valid sampling rates: `48000`, `24000`, `16000`, `12000`, or `8000`. If you specify a value other than
266+
/// one of these, the service returns an error. The default sampling rate is 48,000 Hz.
267+
/// * `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio. The default sampling rate
268+
/// is 22,050 Hz.
269+
/// * `audio/wav` - You can optionally specify the `rate` of the audio. The default sampling rate is 22,050 Hz.
270+
/// * `audio/webm` - The service returns the audio in the `opus` codec. The service returns audio with a
271+
/// sampling rate of 48,000 Hz.
272+
/// * `audio/webm;codecs=opus` - The service returns audio with a sampling rate of 48,000 Hz.
273+
/// * `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio. The default sampling rate
274+
/// is 22,050 Hz.
297275
///
298276
/// For more information about specifying an audio format, including additional details about some of the
299277
/// formats, see [Audio

0 commit comments

Comments
 (0)