Skip to content

Commit 04d50db

Browse files
committed
refactor: Updated generator to get correct service name
1 parent f2ce616 commit 04d50db

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

Scripts/Services/Assistant/V1/AssistantService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace IBM.Watson.Assistant.V1
3030
{
3131
public partial class AssistantService : BaseService
3232
{
33-
private const string serviceId = "conversation";
33+
private const string serviceId = "assistant";
3434
private const string defaultUrl = "https://gateway.watsonplatform.net/assistant/api";
3535

3636
#region Credentials

Scripts/Services/Assistant/V2/AssistantService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace IBM.Watson.Assistant.V2
3030
{
3131
public partial class AssistantService : BaseService
3232
{
33-
private const string serviceId = "conversation";
33+
private const string serviceId = "assistant";
3434
private const string defaultUrl = "https://gateway.watsonplatform.net/assistant/api";
3535

3636
#region Credentials

Scripts/Services/CompareComply/V1/CompareComplyService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace IBM.Watson.CompareComply.V1
3030
{
3131
public partial class CompareComplyService : BaseService
3232
{
33-
private const string serviceId = "compare-comply";
33+
private const string serviceId = "compare_comply";
3434
private const string defaultUrl = "https://gateway.watsonplatform.net/compare-comply/api";
3535

3636
#region Credentials

Scripts/Services/NaturalLanguageUnderstanding/V1/NaturalLanguageUnderstandingService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace IBM.Watson.NaturalLanguageUnderstanding.V1
3030
{
3131
public partial class NaturalLanguageUnderstandingService : BaseService
3232
{
33-
private const string serviceId = "natural-language-understanding";
33+
private const string serviceId = "natural_language_understanding";
3434
private const string defaultUrl = "https://gateway.watsonplatform.net/natural-language-understanding/api";
3535

3636
#region Credentials

Scripts/Services/TextToSpeech/V1/TextToSpeechService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ private void OnListVoicesResponse(RESTConnector.Request req, RESTConnector.Respo
270270
/// language for the input text on the specified voice. Use a voice that matches the language of the input text.
271271
///
272272
///
273-
/// The service returns the synthesized audio stream as an array of bytes. You can pass a maximum of 5 KB of
274-
/// text to the service.
273+
/// The method accepts a maximum of 5 KB of input text in the body of the request, and 8 KB for the URL and
274+
/// headers. The 5 KB limit includes any SSML tags that you specify. The service returns the synthesized audio
275+
/// stream as an array of bytes.
275276
///
276277
/// **See also:** [The HTTP interface](https://cloud.ibm.com/docs/services/text-to-speech/http.html).
277278
///

Scripts/Services/VisualRecognition/V3/VisualRecognitionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace IBM.Watson.VisualRecognition.V3
2929
{
3030
public partial class VisualRecognitionService : BaseService
3131
{
32-
private const string serviceId = "watson_vision_combined";
32+
private const string serviceId = "visual_recognition";
3333
private const string defaultUrl = "https://gateway.watsonplatform.net/visual-recognition/api";
3434

3535
#region Credentials

0 commit comments

Comments
 (0)