Skip to content

Commit

Permalink
feat(regeneration): regenerated with generator 3.21.0 and api def sdk…
Browse files Browse the repository at this point in the history
…-major-release-2020
  • Loading branch information
mediumTaj committed Dec 9, 2020
1 parent 0339538 commit 5de83ec
Show file tree
Hide file tree
Showing 158 changed files with 2,238 additions and 2,420 deletions.
2 changes: 1 addition & 1 deletion Examples/ExampleNaturalLanguageClassifierV1.cs
@@ -1,5 +1,5 @@
/**
* Copyright 2019 IBM Corp. All Rights Reserved.
* (C) Copyright IBM Corp. 2019, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Examples/ExampleNaturalLanguageUnderstandingV1.cs
@@ -1,5 +1,5 @@
/**
* Copyright 2019 IBM Corp. All Rights Reserved.
* (C) Copyright IBM Corp. 2019, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion Examples/ExampleToneAnalyzerV3.cs
@@ -1,5 +1,5 @@
/**
* Copyright 2019 IBM Corp. All Rights Reserved.
* (C) Copyright IBM Corp. 2019, 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
422 changes: 361 additions & 61 deletions Scripts/Services/Assistant/V1/AssistantService.cs

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Scripts/Services/Assistant/V1/Model/Context.cs
@@ -1,5 +1,5 @@
/**
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -15,6 +15,7 @@
*
*/

using System.Collections.Generic;
using IBM.Cloud.SDK.Model;
using Newtonsoft.Json;

Expand All @@ -23,7 +24,7 @@ namespace IBM.Watson.Assistant.V1.Model
/// <summary>
/// State information for the conversation. To maintain state, include the context from the previous response.
/// </summary>
public class Context: DynamicModel<object>
public class Context : DynamicModel<object>
{
/// <summary>
/// The unique identifier of the conversation.
Expand All @@ -34,7 +35,7 @@ public class Context: DynamicModel<object>
/// For internal use only.
/// </summary>
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
public SystemResponse System { get; set; }
public Dictionary<string, object> System { get; set; }
/// <summary>
/// Metadata related to the message.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Services/Assistant/V1/Model/DialogNodeContext.cs
Expand Up @@ -24,7 +24,7 @@ namespace IBM.Watson.Assistant.V1.Model
/// <summary>
/// The context for the dialog node.
/// </summary>
public class DialogNodeContext: DynamicModel<object>
public class DialogNodeContext : DynamicModel<object>
{
/// <summary>
/// Context data intended for specific integrations.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,6 +16,7 @@
*/

using System.Collections.Generic;
using JsonSubTypes;
using Newtonsoft.Json;

namespace IBM.Watson.Assistant.V1.Model
Expand All @@ -30,6 +31,13 @@ namespace IBM.Watson.Assistant.V1.Model
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// </summary>
[JsonConverter(typeof(JsonSubtypes), "response_type")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent), "connect_to_agent")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeImage), "image")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeOption), "option")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypePause), "pause")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill), "search_skill")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeText), "text")]
public class DialogNodeOutputGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
Expand Down
Expand Up @@ -40,6 +40,7 @@ public class ResponseTypeValue
/// <summary>
/// An optional message to be sent to the human agent who will be taking over the conversation.
/// </summary>
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
public new string MessageToHumanAgent
{
get { return base.MessageToHumanAgent; }
Expand All @@ -49,6 +50,7 @@ public new string MessageToHumanAgent
/// An optional message to be displayed to the user to indicate that the conversation will be transferred to the
/// next available agent.
/// </summary>
[JsonProperty("agent_available", NullValueHandling = NullValueHandling.Ignore)]
public new string AgentAvailable
{
get { return base.AgentAvailable; }
Expand All @@ -58,6 +60,7 @@ public new string AgentAvailable
/// An optional message to be displayed to the user to indicate that no online agent is available to take over
/// the conversation.
/// </summary>
[JsonProperty("agent_unavailable", NullValueHandling = NullValueHandling.Ignore)]
public new string AgentUnavailable
{
get { return base.AgentUnavailable; }
Expand All @@ -66,6 +69,7 @@ public new string AgentUnavailable
/// <summary>
/// Routing or other contextual information to be used by target service desk systems.
/// </summary>
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
public new DialogNodeOutputConnectToAgentTransferInfo TransferInfo
{
get { return base.TransferInfo; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -40,6 +40,7 @@ public class ResponseTypeValue
/// <summary>
/// The URL of the image.
/// </summary>
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public new string Source
{
get { return base.Source; }
Expand All @@ -48,6 +49,7 @@ public new string Source
/// <summary>
/// An optional title to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public new string Title
{
get { return base.Title; }
Expand All @@ -56,6 +58,7 @@ public new string Title
/// <summary>
/// An optional description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
{
get { return base.Description; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -57,6 +57,7 @@ public class PreferenceValue
/// <summary>
/// An optional title to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public new string Title
{
get { return base.Title; }
Expand All @@ -65,6 +66,7 @@ public new string Title
/// <summary>
/// An optional description to show with the response.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public new string Description
{
get { return base.Description; }
Expand All @@ -73,6 +75,7 @@ public new string Description
/// <summary>
/// An array of objects describing the options from which the user can choose. You can include up to 20 options.
/// </summary>
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
public new List<DialogNodeOutputOptionsElement> Options
{
get { return base.Options; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -40,6 +40,7 @@ public class ResponseTypeValue
/// <summary>
/// How long to pause, in milliseconds. The valid values are from 0 to 10000.
/// </summary>
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
public new long? Time
{
get { return base.Time; }
Expand All @@ -49,6 +50,7 @@ public class ResponseTypeValue
/// Whether to send a "user is typing" event during the pause. Ignored if the channel does not support this
/// event.
/// </summary>
[JsonProperty("typing", NullValueHandling = NullValueHandling.Ignore)]
public new bool? Typing
{
get { return base.Typing; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -61,6 +61,7 @@ public class QueryTypeValue
/// [Discovery service
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-operators#query-operators).
/// </summary>
[JsonProperty("query", NullValueHandling = NullValueHandling.Ignore)]
public new string Query
{
get { return base.Query; }
Expand All @@ -71,6 +72,7 @@ public new string Query
/// [Discovery service documentation]([Discovery service
/// documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parameters#filter).
/// </summary>
[JsonProperty("filter", NullValueHandling = NullValueHandling.Ignore)]
public new string Filter
{
get { return base.Filter; }
Expand All @@ -79,6 +81,7 @@ public new string Filter
/// <summary>
/// The version of the Discovery service API to use for the query.
/// </summary>
[JsonProperty("discovery_version", NullValueHandling = NullValueHandling.Ignore)]
public new string DiscoveryVersion
{
get { return base.DiscoveryVersion; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -61,6 +61,7 @@ public class SelectionPolicyValue
/// <summary>
/// A list of one or more objects defining text responses.
/// </summary>
[JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)]
public new List<DialogNodeOutputTextValuesElement> Values
{
get { return base.Values; }
Expand All @@ -69,6 +70,7 @@ public new List<DialogNodeOutputTextValuesElement> Values
/// <summary>
/// The delimiter to use as a separator between responses when `selection_policy`=`multiline`.
/// </summary>
[JsonProperty("delimiter", NullValueHandling = NullValueHandling.Ignore)]
public new string Delimiter
{
get { return base.Delimiter; }
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5de83ec

Please sign in to comment.