Skip to content

Commit c24d809

Browse files
committed
feat(regenerate): regenerate services based on current api definitions
1 parent c90c9a2 commit c24d809

File tree

4 files changed

+40
-55
lines changed

4 files changed

+40
-55
lines changed

lib/ibm_watson/assistant_v1.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# The IBM Watson™ Assistant service combines machine learning, natural language
1818
# understanding, and an integrated dialog editor to create conversation flows between your
1919
# apps and your users.
20+
#
21+
# The Assistant v1 API provides authoring methods your application can use to create or
22+
# update a workspace.
2023

2124
require "concurrent"
2225
require "erb"
@@ -72,8 +75,8 @@ def initialize(args = {})
7275
# Get response to user input.
7376
# Send user input to a workspace and receive a response.
7477
#
75-
# **Note:** For most applications, there are significant advantages to using the v2
76-
# runtime API instead. These advantages include ease of deployment, automatic state
78+
# **Important:** This method has been superseded by the new v2 runtime API. The v2
79+
# API offers significant advantages, including ease of deployment, automatic state
7780
# management, versioning, and search capabilities. For more information, see the
7881
# [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-overview).
7982
#

lib/ibm_watson/assistant_v2.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
# The IBM Watson™ Assistant service combines machine learning, natural language
1818
# understanding, and an integrated dialog editor to create conversation flows between your
1919
# apps and your users.
20+
#
21+
# The Assistant v2 API provides runtime methods your client application can use to send
22+
# user input to an assistant and receive a response.
2023

2124
require "concurrent"
2225
require "erb"

lib/ibm_watson/text_to_speech_v1.rb

Lines changed: 29 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def get_voice(voice:, customization_id: nil)
158158
# The service can return audio in the following formats (MIME types).
159159
# * Where indicated, you can optionally specify the sampling rate (`rate`) of the
160160
# audio. You must specify a sampling rate for the `audio/l16` and `audio/mulaw`
161-
# formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz.
161+
# formats. A specified sampling rate must lie in the range of 8 kHz to 192 kHz. Some
162+
# formats restrict the sampling rate to certain values, as noted.
162163
# * For the `audio/l16` format, you can optionally specify the endianness
163164
# (`endianness`) of the audio: `endianness=big-endian` or
164165
# `endianness=little-endian`.
@@ -167,55 +168,33 @@ def get_voice(voice:, customization_id: nil)
167168
# of the response audio. If you omit an audio format altogether, the service returns
168169
# the audio in Ogg format with the Opus codec (`audio/ogg;codecs=opus`). The service
169170
# always returns single-channel audio.
170-
# * `audio/basic`
171-
#
172-
# The service returns audio with a sampling rate of 8000 Hz.
173-
# * `audio/flac`
174-
#
175-
# You can optionally specify the `rate` of the audio. The default sampling rate is
176-
# 22,050 Hz.
177-
# * `audio/l16`
178-
#
179-
# You must specify the `rate` of the audio. You can optionally specify the
180-
# `endianness` of the audio. The default endianness is `little-endian`.
181-
# * `audio/mp3`
182-
#
183-
# You can optionally specify the `rate` of the audio. The default sampling rate is
184-
# 22,050 Hz.
185-
# * `audio/mpeg`
186-
#
187-
# You can optionally specify the `rate` of the audio. The default sampling rate is
188-
# 22,050 Hz.
189-
# * `audio/mulaw`
190-
#
191-
# You must specify the `rate` of the audio.
192-
# * `audio/ogg`
193-
#
194-
# The service returns the audio in the `vorbis` codec. You can optionally specify
195-
# the `rate` of the audio. The default sampling rate is 22,050 Hz.
196-
# * `audio/ogg;codecs=opus`
197-
#
198-
# You can optionally specify the `rate` of the audio. The default sampling rate is
199-
# 22,050 Hz.
200-
# * `audio/ogg;codecs=vorbis`
201-
#
202-
# You can optionally specify the `rate` of the audio. The default sampling rate is
203-
# 22,050 Hz.
204-
# * `audio/wav`
205-
#
206-
# You can optionally specify the `rate` of the audio. The default sampling rate is
207-
# 22,050 Hz.
208-
# * `audio/webm`
209-
#
210-
# The service returns the audio in the `opus` codec. The service returns audio
211-
# with a sampling rate of 48,000 Hz.
212-
# * `audio/webm;codecs=opus`
213-
#
214-
# The service returns audio with a sampling rate of 48,000 Hz.
215-
# * `audio/webm;codecs=vorbis`
216-
#
217-
# You can optionally specify the `rate` of the audio. The default sampling rate is
218-
# 22,050 Hz.
171+
# * `audio/basic` - The service returns audio with a sampling rate of 8000 Hz.
172+
# * `audio/flac` - You can optionally specify the `rate` of the audio. The default
173+
# sampling rate is 22,050 Hz.
174+
# * `audio/l16` - You must specify the `rate` of the audio. You can optionally
175+
# specify the `endianness` of the audio. The default endianness is `little-endian`.
176+
# * `audio/mp3` - You can optionally specify the `rate` of the audio. The default
177+
# sampling rate is 22,050 Hz.
178+
# * `audio/mpeg` - You can optionally specify the `rate` of the audio. The default
179+
# sampling rate is 22,050 Hz.
180+
# * `audio/mulaw` - You must specify the `rate` of the audio.
181+
# * `audio/ogg` - The service returns the audio in the `vorbis` codec. You can
182+
# optionally specify the `rate` of the audio. The default sampling rate is 22,050
183+
# Hz.
184+
# * `audio/ogg;codecs=opus` - You can optionally specify the `rate` of the audio.
185+
# Only the following values are valid sampling rates: `48000`, `24000`, `16000`,
186+
# `12000`, or `8000`. If you specify a value other than one of these, the service
187+
# returns an error. The default sampling rate is 48,000 Hz.
188+
# * `audio/ogg;codecs=vorbis` - You can optionally specify the `rate` of the audio.
189+
# The default sampling rate is 22,050 Hz.
190+
# * `audio/wav` - You can optionally specify the `rate` of the audio. The default
191+
# sampling rate is 22,050 Hz.
192+
# * `audio/webm` - The service returns the audio in the `opus` codec. The service
193+
# returns audio with a sampling rate of 48,000 Hz.
194+
# * `audio/webm;codecs=opus` - The service returns audio with a sampling rate of
195+
# 48,000 Hz.
196+
# * `audio/webm;codecs=vorbis` - You can optionally specify the `rate` of the audio.
197+
# The default sampling rate is 22,050 Hz.
219198
#
220199
# For more information about specifying an audio format, including additional
221200
# details about some of the formats, see [Audio

lib/ibm_watson/visual_recognition_v4.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def initialize(args = {})
8181
# Encode the image and .zip file names in UTF-8 if they contain non-ASCII
8282
# characters. The service assumes UTF-8 encoding if it encounters non-ASCII
8383
# characters.
84-
# @param collection_ids [Array[String]] An array of IDs of the collections to analyze. Separate multiple values with commas.
85-
# @param features [Array[String]] An array of features to analyze. Separate multiple values with commas.
84+
# @param collection_ids [Array[String]] The IDs of the collections to analyze.
85+
# @param features [Array[String]] The features to analyze.
8686
# @param images_file [Array[FileWithMetadata]] An array of image files (.jpg or .png) or .zip files with images.
8787
# - Include a maximum of 20 images in a request.
8888
# - Limit the .zip file to 100 MB.
@@ -582,7 +582,7 @@ def train(collection_id:)
582582
# - To delete the training data, provide an empty value for the training data.
583583
# @param collection_id [String] The identifier of the collection.
584584
# @param image_id [String] The identifier of the image.
585-
# @param objects [Array[BaseObject]] Training data for specific objects.
585+
# @param objects [Array[TrainingDataObject]] Training data for specific objects.
586586
# @return [IBMCloudSdkCore::DetailedResponse] A `IBMCloudSdkCore::DetailedResponse` object representing the response.
587587
def add_image_training_data(collection_id:, image_id:, objects: nil)
588588
raise ArgumentError.new("collection_id must be provided") if collection_id.nil?

0 commit comments

Comments
 (0)