|
95 | 95 | * The Assistant v1 API provides authoring methods your application can use to create or update a workspace. |
96 | 96 | * |
97 | 97 | * @version v1 |
98 | | - * @see <a href="https://cloud.ibm.com/docs/services/assistant/">Assistant</a> |
| 98 | + * @see <a href="https://cloud.ibm.com/docs/assistant/">Assistant</a> |
99 | 99 | */ |
100 | 100 | public class Assistant extends BaseService { |
101 | 101 |
|
@@ -163,7 +163,7 @@ public Assistant(String versionDate, String serviceName, Authenticator authentic |
163 | 163 | * |
164 | 164 | * **Important:** This method has been superseded by the new v2 runtime API. The v2 API offers significant advantages, |
165 | 165 | * including ease of deployment, automatic state management, versioning, and search capabilities. For more |
166 | | - * information, see the [documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-api-overview). |
| 166 | + * information, see the [documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-api-overview). |
167 | 167 | * |
168 | 168 | * There is no rate limit for this operation. |
169 | 169 | * |
@@ -289,6 +289,9 @@ public ServiceCall<Workspace> createWorkspace(CreateWorkspaceOptions createWorks |
289 | 289 | } |
290 | 290 | builder.header("Accept", "application/json"); |
291 | 291 | if (createWorkspaceOptions != null) { |
| 292 | + if (createWorkspaceOptions.includeAudit() != null) { |
| 293 | + builder.query("include_audit", String.valueOf(createWorkspaceOptions.includeAudit())); |
| 294 | + } |
292 | 295 | final JsonObject contentJson = new JsonObject(); |
293 | 296 | if (createWorkspaceOptions.name() != null) { |
294 | 297 | contentJson.addProperty("name", createWorkspaceOptions.name()); |
@@ -418,6 +421,9 @@ public ServiceCall<Workspace> updateWorkspace(UpdateWorkspaceOptions updateWorks |
418 | 421 | if (updateWorkspaceOptions.append() != null) { |
419 | 422 | builder.query("append", String.valueOf(updateWorkspaceOptions.append())); |
420 | 423 | } |
| 424 | + if (updateWorkspaceOptions.includeAudit() != null) { |
| 425 | + builder.query("include_audit", String.valueOf(updateWorkspaceOptions.includeAudit())); |
| 426 | + } |
421 | 427 | final JsonObject contentJson = new JsonObject(); |
422 | 428 | if (updateWorkspaceOptions.name() != null) { |
423 | 429 | contentJson.addProperty("name", updateWorkspaceOptions.name()); |
@@ -565,6 +571,9 @@ public ServiceCall<Intent> createIntent(CreateIntentOptions createIntentOptions) |
565 | 571 | builder.header(header.getKey(), header.getValue()); |
566 | 572 | } |
567 | 573 | builder.header("Accept", "application/json"); |
| 574 | + if (createIntentOptions.includeAudit() != null) { |
| 575 | + builder.query("include_audit", String.valueOf(createIntentOptions.includeAudit())); |
| 576 | + } |
568 | 577 | final JsonObject contentJson = new JsonObject(); |
569 | 578 | contentJson.addProperty("intent", createIntentOptions.intent()); |
570 | 579 | if (createIntentOptions.description() != null) { |
@@ -644,6 +653,12 @@ public ServiceCall<Intent> updateIntent(UpdateIntentOptions updateIntentOptions) |
644 | 653 | builder.header(header.getKey(), header.getValue()); |
645 | 654 | } |
646 | 655 | builder.header("Accept", "application/json"); |
| 656 | + if (updateIntentOptions.append() != null) { |
| 657 | + builder.query("append", String.valueOf(updateIntentOptions.append())); |
| 658 | + } |
| 659 | + if (updateIntentOptions.includeAudit() != null) { |
| 660 | + builder.query("include_audit", String.valueOf(updateIntentOptions.includeAudit())); |
| 661 | + } |
647 | 662 | final JsonObject contentJson = new JsonObject(); |
648 | 663 | if (updateIntentOptions.newIntent() != null) { |
649 | 664 | contentJson.addProperty("intent", updateIntentOptions.newIntent()); |
@@ -757,6 +772,9 @@ public ServiceCall<Example> createExample(CreateExampleOptions createExampleOpti |
757 | 772 | builder.header(header.getKey(), header.getValue()); |
758 | 773 | } |
759 | 774 | builder.header("Accept", "application/json"); |
| 775 | + if (createExampleOptions.includeAudit() != null) { |
| 776 | + builder.query("include_audit", String.valueOf(createExampleOptions.includeAudit())); |
| 777 | + } |
760 | 778 | final JsonObject contentJson = new JsonObject(); |
761 | 779 | contentJson.addProperty("text", createExampleOptions.text()); |
762 | 780 | if (createExampleOptions.mentions() != null) { |
@@ -829,6 +847,9 @@ public ServiceCall<Example> updateExample(UpdateExampleOptions updateExampleOpti |
829 | 847 | builder.header(header.getKey(), header.getValue()); |
830 | 848 | } |
831 | 849 | builder.header("Accept", "application/json"); |
| 850 | + if (updateExampleOptions.includeAudit() != null) { |
| 851 | + builder.query("include_audit", String.valueOf(updateExampleOptions.includeAudit())); |
| 852 | + } |
832 | 853 | final JsonObject contentJson = new JsonObject(); |
833 | 854 | if (updateExampleOptions.newText() != null) { |
834 | 855 | contentJson.addProperty("text", updateExampleOptions.newText()); |
@@ -941,6 +962,9 @@ public ServiceCall<Counterexample> createCounterexample(CreateCounterexampleOpti |
941 | 962 | builder.header(header.getKey(), header.getValue()); |
942 | 963 | } |
943 | 964 | builder.header("Accept", "application/json"); |
| 965 | + if (createCounterexampleOptions.includeAudit() != null) { |
| 966 | + builder.query("include_audit", String.valueOf(createCounterexampleOptions.includeAudit())); |
| 967 | + } |
944 | 968 | final JsonObject contentJson = new JsonObject(); |
945 | 969 | contentJson.addProperty("text", createCounterexampleOptions.text()); |
946 | 970 | builder.bodyJson(contentJson); |
@@ -1008,6 +1032,9 @@ public ServiceCall<Counterexample> updateCounterexample(UpdateCounterexampleOpti |
1008 | 1032 | builder.header(header.getKey(), header.getValue()); |
1009 | 1033 | } |
1010 | 1034 | builder.header("Accept", "application/json"); |
| 1035 | + if (updateCounterexampleOptions.includeAudit() != null) { |
| 1036 | + builder.query("include_audit", String.valueOf(updateCounterexampleOptions.includeAudit())); |
| 1037 | + } |
1011 | 1038 | final JsonObject contentJson = new JsonObject(); |
1012 | 1039 | if (updateCounterexampleOptions.newText() != null) { |
1013 | 1040 | contentJson.addProperty("text", updateCounterexampleOptions.newText()); |
@@ -1118,6 +1145,9 @@ public ServiceCall<Entity> createEntity(CreateEntityOptions createEntityOptions) |
1118 | 1145 | builder.header(header.getKey(), header.getValue()); |
1119 | 1146 | } |
1120 | 1147 | builder.header("Accept", "application/json"); |
| 1148 | + if (createEntityOptions.includeAudit() != null) { |
| 1149 | + builder.query("include_audit", String.valueOf(createEntityOptions.includeAudit())); |
| 1150 | + } |
1121 | 1151 | final JsonObject contentJson = new JsonObject(); |
1122 | 1152 | contentJson.addProperty("entity", createEntityOptions.entity()); |
1123 | 1153 | if (createEntityOptions.description() != null) { |
@@ -1204,6 +1234,12 @@ public ServiceCall<Entity> updateEntity(UpdateEntityOptions updateEntityOptions) |
1204 | 1234 | builder.header(header.getKey(), header.getValue()); |
1205 | 1235 | } |
1206 | 1236 | builder.header("Accept", "application/json"); |
| 1237 | + if (updateEntityOptions.append() != null) { |
| 1238 | + builder.query("append", String.valueOf(updateEntityOptions.append())); |
| 1239 | + } |
| 1240 | + if (updateEntityOptions.includeAudit() != null) { |
| 1241 | + builder.query("include_audit", String.valueOf(updateEntityOptions.includeAudit())); |
| 1242 | + } |
1207 | 1243 | final JsonObject contentJson = new JsonObject(); |
1208 | 1244 | if (updateEntityOptions.newEntity() != null) { |
1209 | 1245 | contentJson.addProperty("entity", updateEntityOptions.newEntity()); |
@@ -1363,6 +1399,9 @@ public ServiceCall<Value> createValue(CreateValueOptions createValueOptions) { |
1363 | 1399 | builder.header(header.getKey(), header.getValue()); |
1364 | 1400 | } |
1365 | 1401 | builder.header("Accept", "application/json"); |
| 1402 | + if (createValueOptions.includeAudit() != null) { |
| 1403 | + builder.query("include_audit", String.valueOf(createValueOptions.includeAudit())); |
| 1404 | + } |
1366 | 1405 | final JsonObject contentJson = new JsonObject(); |
1367 | 1406 | contentJson.addProperty("value", createValueOptions.value()); |
1368 | 1407 | if (createValueOptions.metadata() != null) { |
@@ -1450,6 +1489,12 @@ public ServiceCall<Value> updateValue(UpdateValueOptions updateValueOptions) { |
1450 | 1489 | builder.header(header.getKey(), header.getValue()); |
1451 | 1490 | } |
1452 | 1491 | builder.header("Accept", "application/json"); |
| 1492 | + if (updateValueOptions.append() != null) { |
| 1493 | + builder.query("append", String.valueOf(updateValueOptions.append())); |
| 1494 | + } |
| 1495 | + if (updateValueOptions.includeAudit() != null) { |
| 1496 | + builder.query("include_audit", String.valueOf(updateValueOptions.includeAudit())); |
| 1497 | + } |
1453 | 1498 | final JsonObject contentJson = new JsonObject(); |
1454 | 1499 | if (updateValueOptions.newValue() != null) { |
1455 | 1500 | contentJson.addProperty("value", updateValueOptions.newValue()); |
@@ -1574,6 +1619,9 @@ public ServiceCall<Synonym> createSynonym(CreateSynonymOptions createSynonymOpti |
1574 | 1619 | builder.header(header.getKey(), header.getValue()); |
1575 | 1620 | } |
1576 | 1621 | builder.header("Accept", "application/json"); |
| 1622 | + if (createSynonymOptions.includeAudit() != null) { |
| 1623 | + builder.query("include_audit", String.valueOf(createSynonymOptions.includeAudit())); |
| 1624 | + } |
1577 | 1625 | final JsonObject contentJson = new JsonObject(); |
1578 | 1626 | contentJson.addProperty("synonym", createSynonymOptions.synonym()); |
1579 | 1627 | builder.bodyJson(contentJson); |
@@ -1643,6 +1691,9 @@ public ServiceCall<Synonym> updateSynonym(UpdateSynonymOptions updateSynonymOpti |
1643 | 1691 | builder.header(header.getKey(), header.getValue()); |
1644 | 1692 | } |
1645 | 1693 | builder.header("Accept", "application/json"); |
| 1694 | + if (updateSynonymOptions.includeAudit() != null) { |
| 1695 | + builder.query("include_audit", String.valueOf(updateSynonymOptions.includeAudit())); |
| 1696 | + } |
1646 | 1697 | final JsonObject contentJson = new JsonObject(); |
1647 | 1698 | if (updateSynonymOptions.newSynonym() != null) { |
1648 | 1699 | contentJson.addProperty("synonym", updateSynonymOptions.newSynonym()); |
@@ -1750,6 +1801,9 @@ public ServiceCall<DialogNode> createDialogNode(CreateDialogNodeOptions createDi |
1750 | 1801 | builder.header(header.getKey(), header.getValue()); |
1751 | 1802 | } |
1752 | 1803 | builder.header("Accept", "application/json"); |
| 1804 | + if (createDialogNodeOptions.includeAudit() != null) { |
| 1805 | + builder.query("include_audit", String.valueOf(createDialogNodeOptions.includeAudit())); |
| 1806 | + } |
1753 | 1807 | final JsonObject contentJson = new JsonObject(); |
1754 | 1808 | contentJson.addProperty("dialog_node", createDialogNodeOptions.dialogNode()); |
1755 | 1809 | if (createDialogNodeOptions.description() != null) { |
@@ -1876,6 +1930,9 @@ public ServiceCall<DialogNode> updateDialogNode(UpdateDialogNodeOptions updateDi |
1876 | 1930 | builder.header(header.getKey(), header.getValue()); |
1877 | 1931 | } |
1878 | 1932 | builder.header("Accept", "application/json"); |
| 1933 | + if (updateDialogNodeOptions.includeAudit() != null) { |
| 1934 | + builder.query("include_audit", String.valueOf(updateDialogNodeOptions.includeAudit())); |
| 1935 | + } |
1879 | 1936 | final JsonObject contentJson = new JsonObject(); |
1880 | 1937 | if (updateDialogNodeOptions.newDialogNode() != null) { |
1881 | 1938 | contentJson.addProperty("dialog_node", updateDialogNodeOptions.newDialogNode()); |
@@ -2062,7 +2119,7 @@ public ServiceCall<LogCollection> listAllLogs(ListAllLogsOptions listAllLogsOpti |
2062 | 2119 | * |
2063 | 2120 | * You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. |
2064 | 2121 | * For more information about personal data and customer IDs, see [Information |
2065 | | - * security](https://cloud.ibm.com/docs/services/assistant?topic=assistant-information-security#information-security). |
| 2122 | + * security](https://cloud.ibm.com/docs/assistant?topic=assistant-information-security#information-security). |
2066 | 2123 | * |
2067 | 2124 | * This operation is limited to 4 requests per minute. For more information, see **Rate limiting**. |
2068 | 2125 | * |
|
0 commit comments