Skip to content

Commit

Permalink
feat(): Regenerate using latest api defs including Compare and Comply…
Browse files Browse the repository at this point in the history
… support and Discovery and Natural Language Understanding features

This PR adds the newest generated code using API definition commit `28d3855fc2ffb35704d13e467d555dd1e6576104` and generator commit `373a129b5ba34270f943d1773b881b7473915ac4`.
  • Loading branch information
mediumTaj committed Dec 5, 2018
1 parent 73b2d2e commit 11694c6
Show file tree
Hide file tree
Showing 116 changed files with 1,344 additions and 963 deletions.
133 changes: 69 additions & 64 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/AssistantService.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public partial interface IAssistantService
MessageResponse Message(string workspaceId, MessageRequest request = null, bool? nodesVisitedDetails = null, Dictionary<string, object> customData = null);
Workspace CreateWorkspace(CreateWorkspace properties = null, Dictionary<string, object> customData = null);
BaseModel DeleteWorkspace(string workspaceId, Dictionary<string, object> customData = null);
WorkspaceExport GetWorkspace(string workspaceId, bool? export = null, bool? includeAudit = null, Dictionary<string, object> customData = null);
WorkspaceExport GetWorkspace(string workspaceId, bool? export = null, bool? includeAudit = null, string sort = null, Dictionary<string, object> customData = null);
WorkspaceCollection ListWorkspaces(long? pageLimit = null, bool? includeCount = null, string sort = null, string cursor = null, bool? includeAudit = null, Dictionary<string, object> customData = null);
Workspace UpdateWorkspace(string workspaceId, UpdateWorkspace properties = null, bool? append = null, Dictionary<string, object> customData = null);
Intent CreateIntent(string workspaceId, CreateIntent body, Dictionary<string, object> customData = null);
Expand Down
5 changes: 5 additions & 0 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ public class Context : BaseModel
/// </summary>
[JsonProperty("system", NullValueHandling = NullValueHandling.Ignore)]
public dynamic System { get; set; }
/// <summary>
/// Metadata related to the message.
/// </summary>
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Metadata { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Counterexample : BaseModel
/// The timestamp for creation of the counterexample.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the counterexample.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ public enum DigressOutSlotsEnum
/// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public DialogNodeOutput Output { get; set; }
/// <summary>
/// The context for the dialog node.
/// </summary>
Expand All @@ -297,7 +297,7 @@ public enum DigressOutSlotsEnum
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public object Metadata { get; set; }
/// <summary>
/// The next step to be executed in dialog processing.
/// The next step to execute following this dialog node.
/// </summary>
[JsonProperty("next_step", NullValueHandling = NullValueHandling.Ignore)]
public DialogNodeNextStep NextStep { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ public class CreateEntity : BaseModel
/// <summary>
/// The name of the entity. This string must conform to the following restrictions:
/// - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
/// - It cannot begin with the reserved prefix `sys-`.
/// - It must be no longer than 64 characters.
///
/// If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system
/// entity that you want to enable. (Any entity content specified with the request is ignored.).
/// </summary>
[JsonProperty("entity", NullValueHandling = NullValueHandling.Ignore)]
public string Entity { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class CreateWorkspace : BaseModel
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
public List<CreateEntity> Entities { get; set; }
/// <summary>
/// An array of objects defining the nodes in the workspace dialog.
/// An array of objects defining the nodes in the dialog.
/// </summary>
[JsonProperty("dialog_nodes", NullValueHandling = NullValueHandling.Ignore)]
public List<CreateDialogNode> DialogNodes { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/DialogNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public enum DigressOutSlotsEnum
/// [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public DialogNodeOutput Output { get; set; }
/// <summary>
/// The context (if defined) for the dialog node.
/// </summary>
Expand All @@ -303,12 +303,12 @@ public enum DigressOutSlotsEnum
/// The timestamp for creation of the dialog node.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the most recent update to the dialog node.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The actions for the dialog node.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DialogNodeOutputOptionsElementValue : BaseModel
/// The user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class DialogSuggestionValue : BaseModel
/// The user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
/// <summary>
/// An array of intents to be sent along with the user input.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Entity : BaseModel
/// The timestamp for creation of the entity.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the entity.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class EntityExport : BaseModel
/// The timestamp for creation of the entity.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the entity.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Example.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class Example : BaseModel
/// The timestamp for creation of the example.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the example.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array of contextual entity mentions.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Intent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Intent : BaseModel
/// The timestamp for creation of the intent.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the intent.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the intent.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public class IntentExport : BaseModel
/// The timestamp for creation of the intent.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the intent.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// The description of the intent.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/LogExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ namespace IBM.WatsonDeveloperCloud.Assistant.v1.Model
public class LogExport : BaseModel
{
/// <summary>
/// A request received by the workspace, including the user input and context.
/// A message request formatted for the Watson Assistant service.
/// </summary>
[JsonProperty("request", NullValueHandling = NullValueHandling.Ignore)]
public MessageRequest Request { get; set; }
/// <summary>
/// The response sent by the workspace, including the output text, detected intents and entities, and context.
/// A response from the Watson Assistant service.
/// </summary>
[JsonProperty("response", NullValueHandling = NullValueHandling.Ignore)]
public MessageResponse Response { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* 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.WatsonDeveloperCloud.Assistant.v1.Model
{
/// <summary>
/// Metadata related to the message.
/// </summary>
public class MessageContextMetadata : BaseModel
{
/// <summary>
/// A label identifying the deployment environment, used for filtering log data. This string cannot contain
/// carriage return, newline, or tab characters.
/// </summary>
[JsonProperty("deployment", NullValueHandling = NullValueHandling.Ignore)]
public string Deployment { get; set; }
/// <summary>
/// A string value that identifies the user who is interacting with the workspace. The client must provide a
/// unique identifier for each individual end user who accesses the application. For Plus and Premium plans,
/// this user ID is used to identify unique users for billing purposes. This string cannot contain carriage
/// return, newline, or tab characters.
/// </summary>
[JsonProperty("user_id", NullValueHandling = NullValueHandling.Ignore)]
public string UserId { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,20 @@ namespace IBM.WatsonDeveloperCloud.Assistant.v1.Model
public class MessageRequest : BaseModel
{
/// <summary>
/// An input object that includes the input text.
/// The user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
public InputData Input { get; set; }
/// <summary>
/// Whether to return more than one intent. Set to `true` to return all matching intents.
/// </summary>
[JsonProperty("alternate_intents", NullValueHandling = NullValueHandling.Ignore)]
public bool? AlternateIntents { get; set; }
/// <summary>
/// State information for the conversation. Continue a conversation by including the context object from the
/// previous response.
/// State information for the conversation. To maintain state, include the context from the previous response.
/// </summary>
[JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Context { get; set; }
public Context Context { get; set; }
/// <summary>
/// Entities to use when evaluating the message. Include entities from the previous response to continue using
/// those entities rather than detecting entities in the new input.
Expand All @@ -54,11 +53,11 @@ public class MessageRequest : BaseModel
[JsonProperty("intents", NullValueHandling = NullValueHandling.Ignore)]
public List<RuntimeIntent> Intents { get; set; }
/// <summary>
/// System output. Include the output from the previous response to maintain intermediate information over
/// multiple requests.
/// An output object that includes the response to the user, the dialog nodes that were triggered, and messages
/// from the log.
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
public OutputData Output { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace IBM.WatsonDeveloperCloud.Assistant.v1.Model
public class MessageResponse : BaseModel
{
/// <summary>
/// The user input from the request.
/// The text of the user input.
/// </summary>
[JsonProperty("input", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Input { get; set; }
Expand All @@ -46,12 +46,13 @@ public class MessageResponse : BaseModel
[JsonProperty("alternate_intents", NullValueHandling = NullValueHandling.Ignore)]
public dynamic AlternateIntents { get; set; }
/// <summary>
/// State information for the conversation.
/// State information for the conversation. To maintain state, include the context from the previous response.
/// </summary>
[JsonProperty("context", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Context { get; set; }
/// <summary>
/// Output from the dialog, including the response to the user, the nodes that were triggered, and log messages.
/// An output object that includes the response to the user, the dialog nodes that were triggered, and messages
/// from the log.
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Synonym.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ public class Synonym : BaseModel
/// The timestamp for creation of the synonym.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the most recent update to the synonym.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public enum DigressOutSlotsEnum
[JsonProperty("metadata", NullValueHandling = NullValueHandling.Ignore)]
public object Metadata { get; set; }
/// <summary>
/// The next step to be executed in dialog processing.
/// The next step to execute following this dialog node.
/// </summary>
[JsonProperty("next_step", NullValueHandling = NullValueHandling.Ignore)]
public DialogNodeNextStep NextStep { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class UpdateWorkspace : BaseModel
[JsonProperty("entities", NullValueHandling = NullValueHandling.Ignore)]
public List<CreateEntity> Entities { get; set; }
/// <summary>
/// An array of objects defining the nodes in the workspace dialog.
/// An array of objects defining the nodes in the dialog.
/// </summary>
[JsonProperty("dialog_nodes", NullValueHandling = NullValueHandling.Ignore)]
public List<CreateDialogNode> DialogNodes { get; set; }
Expand Down
4 changes: 2 additions & 2 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/Value.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ public enum ValueTypeEnum
/// The timestamp for creation of the entity value.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity value.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array containing any synonyms for the entity value.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ValueCollection : BaseModel
[JsonProperty("values", NullValueHandling = NullValueHandling.Ignore)]
public List<ValueExport> Values { get; set; }
/// <summary>
/// An object defining the pagination data for the returned objects.
/// The pagination data for the returned objects.
/// </summary>
[JsonProperty("pagination", NullValueHandling = NullValueHandling.Ignore)]
public Pagination Pagination { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ public enum ValueTypeEnum
/// The timestamp for creation of the entity value.
/// </summary>
[JsonProperty("created", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Created { get; private set; }
public virtual DateTime Created { get; private set; }
/// <summary>
/// The timestamp for the last update to the entity value.
/// </summary>
[JsonProperty("updated", NullValueHandling = NullValueHandling.Ignore)]
public virtual DateTime? Updated { get; private set; }
public virtual DateTime Updated { get; private set; }
/// <summary>
/// An array containing any synonyms for the entity value.
/// </summary>
Expand Down
Loading

0 comments on commit 11694c6

Please sign in to comment.