Skip to content

Commit

Permalink
feat: Regenerated SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
mediumTaj committed Sep 11, 2018
1 parent 8afb955 commit b5e5bcb
Show file tree
Hide file tree
Showing 55 changed files with 455 additions and 355 deletions.
36 changes: 14 additions & 22 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/AssistantService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,7 @@ public WorkspaceExport GetWorkspace(string workspaceId, bool? export = null, boo
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -616,8 +615,7 @@ public IntentExport GetIntent(string workspaceId, string intent, bool? export =
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -919,8 +917,7 @@ public Example GetExample(string workspaceId, string intent, string text, bool?
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -1213,8 +1210,7 @@ public Counterexample GetCounterexample(string workspaceId, string text, bool? i
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -1509,8 +1505,7 @@ public EntityExport GetEntity(string workspaceId, string entity, bool? export =
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -1880,8 +1875,7 @@ public ValueExport GetValue(string workspaceId, string entity, string value, boo
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -2198,8 +2192,7 @@ public Synonym GetSynonym(string workspaceId, string entity, string value, strin
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -2493,8 +2486,7 @@ public DialogNode GetDialogNode(string workspaceId, string dialogNode, bool? inc
/// <param name="includeCount">Whether to include information about the number of records returned. (optional,
/// default to false)</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// the value with a minus sign (`-`). (optional)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
/// <param name="includeAudit">Whether to include the audit properties (`created` and `updated` timestamps) in
/// the response. (optional, default to false)</param>
Expand Down Expand Up @@ -2621,9 +2613,9 @@ public DialogNode UpdateDialogNode(string workspaceId, string dialogNode, Update
/// You must specify a filter query that includes a value for `language`, as well as a value for `workspace_id`
/// or `request.context.metadata.deployment`. For more information, see the
/// [documentation](https://console.bluemix.net/docs/services/conversation/filter-reference.html#filter-query-syntax).</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
/// request_timestamp)</param>
/// <param name="pageLimit">The number of records to return in each page of results. (optional, default to
/// 100)</param>
/// <param name="cursor">A token identifying the page of results to retrieve. (optional)</param>
Expand Down Expand Up @@ -2685,9 +2677,9 @@ public LogCollection ListAllLogs(string filter, string sort = null, long? pageLi
/// specified, the limit is 120 requests per minute. For more information, see **Rate limiting**.
/// </summary>
/// <param name="workspaceId">Unique identifier of the workspace.</param>
/// <param name="sort">The attribute by which returned results will be sorted. To reverse the sort order, prefix
/// the value with a minus sign (`-`). Supported values are `name`, `updated`, and `workspace_id`.
/// (optional)</param>
/// <param name="sort">How to sort the returned log events. You can sort by **request_timestamp**. To reverse
/// the sort order, prefix the parameter value with a minus sign (`-`). (optional, default to
/// request_timestamp)</param>
/// <param name="filter">A cacheable parameter that limits the results to those matching the specified filter.
/// For more information, see the
/// [documentation](https://console.bluemix.net/docs/services/conversation/filter-reference.html#filter-query-syntax).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@
<Version>2.7.0</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\IBM.WatsonDeveloperCloud\IBM.WatsonDeveloperCloud.csproj" />
</ItemGroup>
Expand Down
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 Down Expand Up @@ -319,7 +319,8 @@ public enum DigressOutSlotsEnum
[JsonProperty("variable", NullValueHandling = NullValueHandling.Ignore)]
public string Variable { 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. This string must be
/// no longer than 512 characters.
/// </summary>
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
public string UserLabel { get; set; }
Expand Down
5 changes: 3 additions & 2 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 Down Expand Up @@ -325,7 +325,8 @@ public enum DigressOutSlotsEnum
[JsonProperty("variable", NullValueHandling = NullValueHandling.Ignore)]
public string Variable { 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. This string must be
/// no longer than 512 characters.
/// </summary>
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
public string UserLabel { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,24 +172,26 @@ public enum PreferenceEnum
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public string Source { get; set; }
/// <summary>
/// An optional title to show before the response. Valid only when **response_type**=`image` or `option`.
/// An optional title to show before the response. Valid only when **response_type**=`image` or `option`. This
/// string must be no longer than 512 characters.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; set; }
/// <summary>
/// An optional description to show with the response. Valid only when **response_type**=`image` or `option`.
/// This string must be no longer than 256 characters.
/// </summary>
[JsonProperty("description", NullValueHandling = NullValueHandling.Ignore)]
public string Description { get; set; }
/// <summary>
/// An array of objects describing the options from which the user can choose. Required when
/// **response_type**=`option`.
/// An array of objects describing the options from which the user can choose. You can include up to 20 options.
/// Required when **response_type**=`option`.
/// </summary>
[JsonProperty("options", NullValueHandling = NullValueHandling.Ignore)]
public List<DialogNodeOutputOptionsElement> Options { get; set; }
/// <summary>
/// An optional message to be sent to the human agent who will be taking over the conversation. Valid only when
/// **reponse_type**=`connect_to_agent`.
/// **reponse_type**=`connect_to_agent`. This string must be no longer than 256 characters.
/// </summary>
[JsonProperty("message_to_human_agent", NullValueHandling = NullValueHandling.Ignore)]
public string MessageToHumanAgent { get; set; }
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 @@ -25,8 +25,9 @@ namespace IBM.WatsonDeveloperCloud.Assistant.v1.Model
public class DialogNodeOutputTextValuesElement : BaseModel
{
/// <summary>
/// The text of a response. This can include newline characters (`
/// `), Markdown tagging, or other special characters, if supported by the channel.
/// The text of a response. This string can include newline characters (`
/// `), Markdown tagging, or other special characters, if supported by the channel. It must be no longer than
/// 4096 characters.
/// </summary>
[JsonProperty("text", NullValueHandling = NullValueHandling.Ignore)]
public string Text { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public enum PreferenceEnum
[JsonProperty("source", NullValueHandling = NullValueHandling.Ignore)]
public string Source { get; set; }
/// <summary>
/// The title to show before the response.
/// The title or introductory text to show before the response.
/// </summary>
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; set; }
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MessageRequest : BaseModel
/// An input object that includes the input text.
/// </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>
Expand All @@ -40,7 +40,7 @@ public class MessageRequest : BaseModel
/// 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 @@ -58,7 +58,7 @@ public class MessageRequest : BaseModel
/// multiple requests.
/// </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 @@ -55,6 +55,11 @@ public class MessageResponse : BaseModel
/// </summary>
[JsonProperty("output", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Output { get; set; }
/// <summary>
/// An array of objects describing any actions requested by the dialog node.
/// </summary>
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Actions { get; set; }
}

}
5 changes: 5 additions & 0 deletions src/IBM.WatsonDeveloperCloud.Assistant.v1/Model/OutputData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public class OutputData : BaseModel
/// </summary>
[JsonProperty("nodes_visited_details", NullValueHandling = NullValueHandling.Ignore)]
public dynamic NodesVisitedDetails { get; set; }
/// <summary>
/// An array of objects describing any actions requested by the dialog node.
/// </summary>
[JsonProperty("actions", NullValueHandling = NullValueHandling.Ignore)]
public dynamic Actions { get; set; }
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,8 @@ public enum DigressOutSlotsEnum
[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. This string must be
/// no longer than 512 characters.
/// </summary>
[JsonProperty("user_label", NullValueHandling = NullValueHandling.Ignore)]
public string UserLabel { get; set; }
Expand Down
Loading

0 comments on commit b5e5bcb

Please sign in to comment.