Skip to content

Commit 5de83ec

Browse files
committed
feat(regeneration): regenerated with generator 3.21.0 and api def sdk-major-release-2020
1 parent 0339538 commit 5de83ec

File tree

158 files changed

+2238
-2420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+2238
-2420
lines changed

Examples/ExampleNaturalLanguageClassifierV1.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2019, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Examples/ExampleNaturalLanguageUnderstandingV1.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2019, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Examples/ExampleToneAnalyzerV3.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2019, 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

Scripts/Services/Assistant/V1/AssistantService.cs

+361-61
Large diffs are not rendered by default.

Scripts/Services/Assistant/V1/Model/BulkClassifyOutput.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/V1/Model/BulkClassifyResponse.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/V1/Model/BulkClassifyUtterance.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
1515
*
1616
*/
1717

18+
using System.Collections.Generic;
1819
using IBM.Cloud.SDK.Model;
1920
using Newtonsoft.Json;
2021

@@ -23,7 +24,7 @@ namespace IBM.Watson.Assistant.V1.Model
2324
/// <summary>
2425
/// State information for the conversation. To maintain state, include the context from the previous response.
2526
/// </summary>
26-
public class Context: DynamicModel<object>
27+
public class Context : DynamicModel<object>
2728
{
2829
/// <summary>
2930
/// The unique identifier of the conversation.
@@ -34,7 +35,7 @@ public class Context: DynamicModel<object>
3435
/// For internal use only.
3536
/// </summary>
3637
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
37-
public SystemResponse System { get; set; }
38+
public Dictionary<string, object> System { get; set; }
3839
/// <summary>
3940
/// Metadata related to the message.
4041
/// </summary>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace IBM.Watson.Assistant.V1.Model
2424
/// <summary>
2525
/// The context for the dialog node.
2626
/// </summary>
27-
public class DialogNodeContext: DynamicModel<object>
27+
public class DialogNodeContext : DynamicModel<object>
2828
{
2929
/// <summary>
3030
/// Context data intended for specific integrations.

Scripts/Services/Assistant/V1/Model/DialogNodeContext.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Scripts/Services/Assistant/V1/Model/DialogNodeOutputConnectToAgentTransferInfo.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corp. 2019, 2020.
2+
* (C) Copyright IBM Corp. 2020.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
1616
*/
1717

1818
using System.Collections.Generic;
19+
using JsonSubTypes;
1920
using Newtonsoft.Json;
2021

2122
namespace IBM.Watson.Assistant.V1.Model
@@ -30,6 +31,13 @@ namespace IBM.Watson.Assistant.V1.Model
3031
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
3132
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
3233
/// </summary>
34+
[JsonConverter(typeof(JsonSubtypes), "response_type")]
35+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
36+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
37+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
38+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
39+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
40+
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
3341
public class DialogNodeOutputGeneric
3442
{
3543
/// This ctor is protected to prevent instantiation of this base class.

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

+4
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class ResponseTypeValue
4040
/// <summary>
4141
/// An optional message to be sent to the human agent who will be taking over the conversation.
4242
/// </summary>
43+
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
4344
public new string MessageToHumanAgent
4445
{
4546
get { return base.MessageToHumanAgent; }
@@ -49,6 +50,7 @@ public class ResponseTypeValue
4950
/// An optional message to be displayed to the user to indicate that the conversation will be transferred to the
5051
/// next available agent.
5152
/// </summary>
53+
[JsonProperty("agent_available", NullValueHandling = NullValueHandling.Ignore)]
5254
public new string AgentAvailable
5355
{
5456
get { return base.AgentAvailable; }
@@ -58,6 +60,7 @@ public class ResponseTypeValue
5860
/// An optional message to be displayed to the user to indicate that no online agent is available to take over
5961
/// the conversation.
6062
/// </summary>
63+
[JsonProperty("agent_unavailable", NullValueHandling = NullValueHandling.Ignore)]
6164
public new string AgentUnavailable
6265
{
6366
get { return base.AgentUnavailable; }
@@ -66,6 +69,7 @@ public class ResponseTypeValue
6669
/// <summary>
6770
/// Routing or other contextual information to be used by target service desk systems.
6871
/// </summary>
72+
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
6973
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo
7074
{
7175
get { return base.TransferInfo; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class ResponseTypeValue
4040
/// <summary>
4141
/// The URL of the image.
4242
/// </summary>
43+
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
4344
public new string Source
4445
{
4546
get { return base.Source; }
@@ -48,6 +49,7 @@ public class ResponseTypeValue
4849
/// <summary>
4950
/// An optional title to show before the response.
5051
/// </summary>
52+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
5153
public new string Title
5254
{
5355
get { return base.Title; }
@@ -56,6 +58,7 @@ public class ResponseTypeValue
5658
/// <summary>
5759
/// An optional description to show with the response.
5860
/// </summary>
61+
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
5962
public new string Description
6063
{
6164
get { return base.Description; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeImage.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class PreferenceValue
5757
/// <summary>
5858
/// An optional title to show before the response.
5959
/// </summary>
60+
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
6061
public new string Title
6162
{
6263
get { return base.Title; }
@@ -65,6 +66,7 @@ public class PreferenceValue
6566
/// <summary>
6667
/// An optional description to show with the response.
6768
/// </summary>
69+
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
6870
public new string Description
6971
{
7072
get { return base.Description; }
@@ -73,6 +75,7 @@ public class PreferenceValue
7375
/// <summary>
7476
/// An array of objects describing the options from which the user can choose. You can include up to 20 options.
7577
/// </summary>
78+
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
7679
public new List<DialogNodeOutputOptionsElement> Options
7780
{
7881
get { return base.Options; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeOption.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public class ResponseTypeValue
4040
/// <summary>
4141
/// How long to pause, in milliseconds. The valid values are from 0 to 10000.
4242
/// </summary>
43+
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
4344
public new long? Time
4445
{
4546
get { return base.Time; }
@@ -49,6 +50,7 @@ public class ResponseTypeValue
4950
/// Whether to send a "user is typing" event during the pause. Ignored if the channel does not support this
5051
/// event.
5152
/// </summary>
53+
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
5254
public new bool? Typing
5355
{
5456
get { return base.Typing; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypePause.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class QueryTypeValue
6161
/// [Discovery service
6262
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-operators#query-operators).
6363
/// </summary>
64+
[JsonProperty("query", NullValueHandling = NullValueHandling.Ignore)]
6465
public new string Query
6566
{
6667
get { return base.Query; }
@@ -71,6 +72,7 @@ public class QueryTypeValue
7172
/// [Discovery service documentation]([Discovery service
7273
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parameters#filter).
7374
/// </summary>
75+
[JsonProperty("filter", NullValueHandling = NullValueHandling.Ignore)]
7476
public new string Filter
7577
{
7678
get { return base.Filter; }
@@ -79,6 +81,7 @@ public class QueryTypeValue
7981
/// <summary>
8082
/// The version of the Discovery service API to use for the query.
8183
/// </summary>
84+
[JsonProperty("discovery_version", NullValueHandling = NullValueHandling.Ignore)]
8285
public new string DiscoveryVersion
8386
{
8487
get { return base.DiscoveryVersion; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public class SelectionPolicyValue
6161
/// <summary>
6262
/// A list of one or more objects defining text responses.
6363
/// </summary>
64+
[JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)]
6465
public new List<DialogNodeOutputTextValuesElement> Values
6566
{
6667
get { return base.Values; }
@@ -69,6 +70,7 @@ public class SelectionPolicyValue
6970
/// <summary>
7071
/// The delimiter to use as a separator between responses when `selection_policy`=`multiline`.
7172
/// </summary>
73+
[JsonProperty("delimiter", NullValueHandling = NullValueHandling.Ignore)]
7274
public new string Delimiter
7375
{
7476
get { return base.Delimiter; }

Scripts/Services/Assistant/V1/Model/DialogNodeOutputGenericDialogNodeOutputResponseTypeText.cs.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)