Skip to content

Commit

Permalink
feat(generation): generated using api def sdk-2021-05-11-rerelease an…
Browse files Browse the repository at this point in the history
…d gen 3.31.0
  • Loading branch information
kevinkowa committed Jun 8, 2021
1 parent 4ccfaa2 commit 44079dd
Show file tree
Hide file tree
Showing 159 changed files with 6,074 additions and 557 deletions.
85 changes: 58 additions & 27 deletions Scripts/Services/Assistant/V1/AssistantService.cs

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions Scripts/Services/Assistant/V1/Model/ChannelTransferInfo.cs
@@ -0,0 +1,35 @@
/**
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using Newtonsoft.Json;

namespace IBM.Watson.Assistant.V1.Model
{
/// <summary>
/// Information used by an integration to transfer the conversation to a different channel.
/// </summary>
public class ChannelTransferInfo
{
/// <summary>
/// An object specifying target channels available for the transfer. Each property of this object represents an
/// available transfer target. Currently, the only supported property is **chat**, representing the web chat
/// integration.
/// </summary>
[JsonProperty("target", NullValueHandling = NullValueHandling.Ignore)]
public ChannelTransferTarget Target { get; set; }
}
}
11 changes: 11 additions & 0 deletions Scripts/Services/Assistant/V1/Model/ChannelTransferInfo.cs.meta

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

35 changes: 35 additions & 0 deletions Scripts/Services/Assistant/V1/Model/ChannelTransferTarget.cs
@@ -0,0 +1,35 @@
/**
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using Newtonsoft.Json;

namespace IBM.Watson.Assistant.V1.Model
{
/// <summary>
/// An object specifying target channels available for the transfer. Each property of this object represents an
/// available transfer target. Currently, the only supported property is **chat**, representing the web chat
/// integration.
/// </summary>
public class ChannelTransferTarget
{
/// <summary>
/// Information for transferring to the web chat integration.
/// </summary>
[JsonProperty("chat", NullValueHandling = NullValueHandling.Ignore)]
public ChannelTransferTargetChat Chat { get; set; }
}
}
11 changes: 11 additions & 0 deletions Scripts/Services/Assistant/V1/Model/ChannelTransferTarget.cs.meta

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

33 changes: 33 additions & 0 deletions Scripts/Services/Assistant/V1/Model/ChannelTransferTargetChat.cs
@@ -0,0 +1,33 @@
/**
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using Newtonsoft.Json;

namespace IBM.Watson.Assistant.V1.Model
{
/// <summary>
/// Information for transferring to the web chat integration.
/// </summary>
public class ChannelTransferTargetChat
{
/// <summary>
/// The URL of the target web chat.
/// </summary>
[JsonProperty("url", NullValueHandling = NullValueHandling.Ignore)]
public string Url { get; set; }
}
}

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

25 changes: 16 additions & 9 deletions Scripts/Services/Assistant/V1/Model/DialogNode.cs
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -193,8 +193,10 @@ public class DigressOutSlotsValue
[JsonProperty("digress_out_slots", NullValueHandling = NullValueHandling.Ignore)]
public string DigressOutSlots { get; set; }
/// <summary>
/// The dialog node ID. This string must conform to the following restrictions:
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
/// The unique ID of the dialog node. This is an internal identifier used to refer to the dialog node from other
/// dialog nodes and in the diagnostic information included with message responses.
///
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
/// </summary>
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
public string _DialogNode { get; set; }
Expand All @@ -210,13 +212,13 @@ public class DigressOutSlotsValue
[JsonProperty("conditions", NullValueHandling = NullValueHandling.Ignore)]
public string Conditions { get; set; }
/// <summary>
/// The ID of the parent dialog node. This property is omitted if the dialog node has no parent.
/// The unique ID of the parent dialog node. This property is omitted if the dialog node has no parent.
/// </summary>
[JsonProperty("parent", NullValueHandling = NullValueHandling.Ignore)]
public string Parent { get; set; }
/// <summary>
/// The ID of the previous sibling dialog node. This property is omitted if the dialog node has no previous
/// sibling.
/// The unique ID of the previous sibling dialog node. This property is omitted if the dialog node has no
/// previous sibling.
/// </summary>
[JsonProperty("previous_sibling", NullValueHandling = NullValueHandling.Ignore)]
public string PreviousSibling { get; set; }
Expand All @@ -242,8 +244,12 @@ public class DigressOutSlotsValue
[JsonProperty("next_step", NullValueHandling = NullValueHandling.Ignore)]
public DialogNodeNextStep NextStep { get; set; }
/// <summary>
/// The alias used to identify the dialog node. This string must conform to the following restrictions:
/// - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
/// A human-readable name for the dialog node. If the node is included in disambiguation, this title is used to
/// populate the **label** property of the corresponding suggestion in the `suggestion` response type (unless it
/// is overridden by the **user_label** property). The title is also used to populate the **topic** property in
/// the `connect_to_agent` response type.
///
/// This string can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; set; }
Expand All @@ -258,7 +264,8 @@ public class DigressOutSlotsValue
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
public List<DialogNodeAction> Actions { get; set; }
/// <summary>
/// A label that can be displayed externally to describe the purpose of the node to users.
/// A label that can be displayed externally to describe the purpose of the node to users. If set, this label is
/// used to identify the node in disambiguation responses (overriding the value of the **title** property).
/// </summary>
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
public string UserLabel { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions Scripts/Services/Assistant/V1/Model/DialogNodeNextStep.cs
@@ -1,5 +1,5 @@
/**
* Copyright 2018, 2019 IBM Corp. All Rights Reserved.
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -129,7 +129,7 @@ public class SelectorValue
[JsonProperty("selector", NullValueHandling = NullValueHandling.Ignore)]
public string Selector { get; set; }
/// <summary>
/// The ID of the dialog node to process next. This parameter is required if **behavior**=`jump_to`.
/// The unique ID of the dialog node to process next. This parameter is required if **behavior**=`jump_to`.
/// </summary>
[JsonProperty("dialog_node", NullValueHandling = NullValueHandling.Ignore)]
public string DialogNode { get; set; }
Expand Down
50 changes: 29 additions & 21 deletions Scripts/Services/Assistant/V1/Model/DialogNodeOutputGeneric.cs
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -30,14 +30,18 @@ namespace IBM.Watson.Assistant.V1.Model
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
/// </summary>
[JsonConverter(typeof(JsonSubtypes), "response_type")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer), "channel_transfer")]
[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")]
[JsonSubtypes.KnownSubType(typeof(DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined), "user_defined")]
public class DialogNodeOutputGeneric
{
/// This ctor is protected to prevent instantiation of this base class.
Expand All @@ -48,23 +52,12 @@ public class DialogNodeOutputGeneric
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer
/// - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
protected DialogNodeOutputGeneric()
{
}

/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
public class ResponseTypeValue
{
/// <summary>
/// Constant TEXT for text
/// </summary>
public const string TEXT = "text";

}

/// <summary>
/// How a response is selected from the list, if more than one response is specified.
/// </summary>
Expand Down Expand Up @@ -117,13 +110,6 @@ public class QueryTypeValue

}

/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// Constants for possible values can be found using DialogNodeOutputGeneric.ResponseTypeValue
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public string ResponseType { get; set; }
/// <summary>
/// How a response is selected from the list, if more than one response is specified.
/// Constants for possible values can be found using DialogNodeOutputGeneric.SelectionPolicyValue
Expand All @@ -143,6 +129,12 @@ public class QueryTypeValue
[JsonProperty("query_type", NullValueHandling = NullValueHandling.Ignore)]
public string QueryType { get; set; }
/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public string ResponseType { get; protected set; }
/// <summary>
/// A list of one or more objects defining text responses.
/// </summary>
[JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)]
Expand All @@ -153,6 +145,11 @@ public class QueryTypeValue
[JsonProperty("delimiter", NullValueHandling = NullValueHandling.Ignore)]
public string Delimiter { get; protected set; }
/// <summary>
/// An array of objects specifying channels for which the response is intended.
/// </summary>
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
public List<ResponseGenericChannel> Channels { get; protected set; }
/// <summary>
/// How long to pause, in milliseconds. The valid values are from 0 to 10000.
/// </summary>
[JsonProperty("time", NullValueHandling = NullValueHandling.Ignore)]
Expand Down Expand Up @@ -225,5 +222,16 @@ public class QueryTypeValue
/// </summary>
[JsonProperty("discovery_version", NullValueHandling = NullValueHandling.Ignore)]
public string DiscoveryVersion { get; protected set; }
/// <summary>
/// The message to display to the user when initiating a channel transfer.
/// </summary>
[JsonProperty("message_to_user", NullValueHandling = NullValueHandling.Ignore)]
public string MessageToUser { get; protected set; }
/// <summary>
/// An object containing any properties for the user-defined response type. The total size of this object cannot
/// exceed 5000 bytes.
/// </summary>
[JsonProperty("user_defined", NullValueHandling = NullValueHandling.Ignore)]
public Dictionary<string, object> UserDefined { get; protected set; }
}
}
@@ -0,0 +1,66 @@
/**
* (C) Copyright IBM Corp. 2021.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

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

namespace IBM.Watson.Assistant.V1.Model
{
/// <summary>
/// DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer.
/// </summary>
public class DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer : DialogNodeOutputGeneric
{
/// <summary>
/// The type of response returned by the dialog node. The specified response type must be supported by the
/// client application or channel.
/// </summary>
[JsonProperty("response_type", NullValueHandling = NullValueHandling.Ignore)]
public new string ResponseType
{
get { return base.ResponseType; }
set { base.ResponseType = value; }
}
/// <summary>
/// The message to display to the user when initiating a channel transfer.
/// </summary>
[JsonProperty("message_to_user", NullValueHandling = NullValueHandling.Ignore)]
public new string MessageToUser
{
get { return base.MessageToUser; }
set { base.MessageToUser = value; }
}
/// <summary>
/// Information used by an integration to transfer the conversation to a different channel.
/// </summary>
[JsonProperty("transfer_info", NullValueHandling = NullValueHandling.Ignore)]
public new ChannelTransferInfo TransferInfo
{
get { return base.TransferInfo; }
set { base.TransferInfo = value; }
}
/// <summary>
/// An array of objects specifying channels for which the response is intended.
/// </summary>
[JsonProperty("channels", NullValueHandling = NullValueHandling.Ignore)]
public new List<ResponseGenericChannel> Channels
{
get { return base.Channels; }
set { base.Channels = value; }
}
}
}

0 comments on commit 44079dd

Please sign in to comment.