diff --git a/eng/versioning/version_data.txt b/eng/versioning/version_data.txt index e10a90464a82..432fefc3f50c 100644 --- a/eng/versioning/version_data.txt +++ b/eng/versioning/version_data.txt @@ -8,7 +8,7 @@ com.microsoft.azure:azure-applicationinsights-query;1.0.0-beta-2;1.0.0-beta-2 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-spellcheck;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-textanalytics;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-runtime;1.1.0-beta.1;1.1.0-beta.1 -com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.1.0-beta.1;1.1.0-beta.1 +com.microsoft.azure.cognitiveservices:azure-cognitiveservices-luis-authoring;1.0.3-beta;1.0.3-beta com.microsoft.azure.cognitiveservices:azure-cognitiveservices-autosuggest;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customimagesearch;1.1.0-beta.1;1.1.0-beta.1 com.microsoft.azure.cognitiveservices:azure-cognitiveservices-customsearch;1.1.0-beta.1;1.1.0-beta.1 diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/pom.xml b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/pom.xml index f507021590a3..d1c9208c057e 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/pom.xml +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/pom.xml @@ -13,7 +13,7 @@ azure-cognitiveservices-luis-authoring com.microsoft.azure.cognitiveservices - 1.1.0-beta.1 + 1.0.3-beta jar Microsoft Azure SDK for Cognitive Service Language Understanding (LUIS) This package contains Microsoft Cognitive Service Language Understanding (LUIS). diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java index 2ede84991ffb..75c31a678a27 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java @@ -10,6 +10,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListAppsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ImportMethodAppsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.DeleteAppsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateSettingsOptionalParameter; import com.microsoft.azure.CloudException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ApplicationCreateObject; @@ -28,6 +29,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PublishSettings; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PublishSettingUpdateObject; import java.io.InputStream; +import java.io.IOException; import java.util.List; import java.util.Map; import java.util.UUID; @@ -42,9 +44,9 @@ public interface Apps { /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain * (optional) and initial version ID (optional) of the application. Default value for the version ID - * is 0.1. Note: the culture cannot be changed after the app is created. + * is "0.1". Note: the culture cannot be changed after the app is created. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -55,9 +57,9 @@ public interface Apps { /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain * (optional) and initial version ID (optional) of the application. Default value for the version ID - * is 0.1. Note: the culture cannot be changed after the app is created. + * is "0.1". Note: the culture cannot be changed after the app is created. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -65,7 +67,7 @@ public interface Apps { /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation @@ -73,21 +75,19 @@ public interface Apps { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<ApplicationInfoResponse> object if successful. */ - @Deprecated List list(ListAppsOptionalParameter listOptionalParameter); /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<ApplicationInfoResponse> object */ - @Deprecated Observable> listAsync(ListAppsOptionalParameter listOptionalParameter); /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @return the first stage of the list call */ @@ -146,7 +146,7 @@ interface AppsListDefinition extends } /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @param luisApp A LUIS application structure. * @param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API @@ -155,22 +155,20 @@ interface AppsListDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID importMethod(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter); /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @param luisApp A LUIS application structure. * @param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable importMethodAsync(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter); /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @return the first stage of the importMethod call */ @@ -198,7 +196,7 @@ interface WithLuisApp { interface WithAllOptions { /** * The application name to create. If not specified, the application name will be read from the imported - * object. + * object. If the application name already exists, an error is returned. * * @return next definition stage */ @@ -296,7 +294,8 @@ interface AppsImportMethodDefinition extends /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For + * example,"en-us" represents the U.S. variation of English. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -306,7 +305,8 @@ interface AppsImportMethodDefinition extends List listSupportedCultures(); /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For + * example,"en-us" represents the U.S. variation of English. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<AvailableCulture> object @@ -316,7 +316,7 @@ interface AppsImportMethodDefinition extends /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -327,7 +327,7 @@ interface AppsImportMethodDefinition extends InputStream downloadQueryLogs(UUID appId); /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -382,27 +382,91 @@ interface AppsImportMethodDefinition extends Observable updateAsync(UUID appId, ApplicationUpdateObject applicationUpdateObject); - /** * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - OperationStatus delete(UUID appId); + OperationStatus delete(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter); /** * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - Observable deleteAsync(UUID appId); + Observable deleteAsync(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter); + + /** + * Deletes an application. + * + * @return the first stage of the delete call + */ + AppsDeleteDefinitionStages.WithAppId delete(); + + /** + * Grouping of delete definition stages. + */ + interface AppsDeleteDefinitionStages { + /** + * The stage of the definition to be specify appId. + */ + interface WithAppId { + /** + * The application ID. + * + * @return next definition stage + */ + AppsDeleteDefinitionStages.WithExecute withAppId(UUID appId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * A flag to indicate whether to force an operation. + * + * @return next definition stage + */ + AppsDeleteDefinitionStages.WithExecute withForce(Boolean force); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends AppsDeleteDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the OperationStatus object if successful. + */ + OperationStatus execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the OperationStatus object + */ + Observable executeAsync(); + } + } + /** + * The entirety of delete definition. + */ + interface AppsDeleteDefinition extends + AppsDeleteDefinitionStages.WithAppId, + AppsDeleteDefinitionStages.WithExecute { + } /** @@ -432,7 +496,7 @@ interface AppsImportMethodDefinition extends /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -443,7 +507,7 @@ interface AppsImportMethodDefinition extends ApplicationSettings getSettings(UUID appId); /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -453,7 +517,7 @@ interface AppsImportMethodDefinition extends /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param updateSettingsOptionalParameter the object representing the optional parameters to be set before calling this API @@ -462,22 +526,20 @@ interface AppsImportMethodDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateSettings(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter); /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param updateSettingsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateSettingsAsync(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter); /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @return the first stage of the updateSettings call */ @@ -509,7 +571,7 @@ interface WithAllOptions { * * @return next definition stage */ - AppsUpdateSettingsDefinitionStages.WithExecute withPublicParameter(boolean publicParameter); + AppsUpdateSettingsDefinitionStages.WithExecute withIsPublic(boolean isPublic); } @@ -543,7 +605,7 @@ interface AppsUpdateSettingsDefinition extends /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -554,7 +616,7 @@ interface AppsUpdateSettingsDefinition extends PublishSettings getPublishSettings(UUID appId); /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -565,7 +627,7 @@ interface AppsUpdateSettingsDefinition extends /** - * Updates the application publish settings. + * Updates the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. @@ -577,7 +639,7 @@ interface AppsUpdateSettingsDefinition extends OperationStatus updatePublishSettings(UUID appId, PublishSettingUpdateObject publishSettingUpdateObject); /** - * Updates the application publish settings. + * Updates the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. @@ -631,7 +693,7 @@ interface AppsUpdateSettingsDefinition extends /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -642,7 +704,7 @@ interface AppsUpdateSettingsDefinition extends UUID addCustomPrebuiltDomain(PrebuiltDomainCreateObject prebuiltDomainCreateObject); /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -653,7 +715,7 @@ interface AppsUpdateSettingsDefinition extends /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. * * @param culture Culture. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -664,7 +726,7 @@ interface AppsUpdateSettingsDefinition extends List listAvailableCustomPrebuiltDomainsForCulture(String culture); /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. * * @param culture Culture. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -673,4 +735,56 @@ interface AppsUpdateSettingsDefinition extends Observable> listAvailableCustomPrebuiltDomainsForCultureAsync(String culture); + + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. + */ + InputStream packagePublishedApplicationAsGzip(UUID appId, String slotName); + + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + Observable packagePublishedApplicationAsGzipAsync(UUID appId, String slotName); + + + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. + */ + InputStream packageTrainedApplicationAsGzip(UUID appId, String versionId); + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + Observable packageTrainedApplicationAsGzipAsync(UUID appId, String versionId); + + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/AzureAccounts.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/AzureAccounts.java new file mode 100644 index 000000000000..0be16f7b1f68 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/AzureAccounts.java @@ -0,0 +1,250 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring; + +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AssignToAppOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.RemoveFromAppOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; +import java.io.IOException; +import java.util.List; +import java.util.UUID; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in AzureAccounts. + */ +public interface AzureAccounts { + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus assignToApp(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter); + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter); + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @return the first stage of the assignToApp call + */ + AzureAccountsAssignToAppDefinitionStages.WithAppId assignToApp(); + + /** + * Grouping of assignToApp definition stages. + */ + interface AzureAccountsAssignToAppDefinitionStages { + /** + * The stage of the definition to be specify appId. + */ + interface WithAppId { + /** + * The application ID. + * + * @return next definition stage + */ + AzureAccountsAssignToAppDefinitionStages.WithExecute withAppId(UUID appId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The Azure account information object. + * + * @return next definition stage + */ + AzureAccountsAssignToAppDefinitionStages.WithExecute withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends AzureAccountsAssignToAppDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the OperationStatus object if successful. + */ + OperationStatus execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the OperationStatus object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of assignToApp definition. + */ + interface AzureAccountsAssignToAppDefinition extends + AzureAccountsAssignToAppDefinitionStages.WithAppId, + AzureAccountsAssignToAppDefinitionStages.WithExecute { + } + + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AzureAccountInfoObject> object if successful. + */ + List getAssigned(UUID appId); + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + Observable> getAssignedAsync(UUID appId); + + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus removeFromApp(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter); + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter); + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @return the first stage of the removeFromApp call + */ + AzureAccountsRemoveFromAppDefinitionStages.WithAppId removeFromApp(); + + /** + * Grouping of removeFromApp definition stages. + */ + interface AzureAccountsRemoveFromAppDefinitionStages { + /** + * The stage of the definition to be specify appId. + */ + interface WithAppId { + /** + * The application ID. + * + * @return next definition stage + */ + AzureAccountsRemoveFromAppDefinitionStages.WithExecute withAppId(UUID appId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The Azure account information object. + * + * @return next definition stage + */ + AzureAccountsRemoveFromAppDefinitionStages.WithExecute withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends AzureAccountsRemoveFromAppDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the OperationStatus object if successful. + */ + OperationStatus execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the OperationStatus object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of removeFromApp definition. + */ + interface AzureAccountsRemoveFromAppDefinition extends + AzureAccountsRemoveFromAppDefinitionStages.WithAppId, + AzureAccountsRemoveFromAppDefinitionStages.WithExecute { + } + + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AzureAccountInfoObject> object if successful. + */ + List listUserLUISAccounts(); + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + Observable> listUserLUISAccountsAsync(); + + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java index b673d2e963f8..902fd87508e8 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java @@ -15,6 +15,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabeledUtterance; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabelExampleResponse; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -26,11 +27,11 @@ public interface Examples { /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -39,11 +40,11 @@ public interface Examples { LabelExampleResponse add(UUID appId, String versionId, ExampleLabelObject exampleLabelObject); /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LabelExampleResponse object */ @@ -52,11 +53,11 @@ public interface Examples { /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -65,11 +66,11 @@ public interface Examples { List batch(UUID appId, String versionId, List exampleLabelObjectArray); /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<BatchLabelExample> object */ @@ -77,7 +78,7 @@ public interface Examples { /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -87,11 +88,10 @@ public interface Examples { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<LabeledUtterance> object if successful. */ - @Deprecated List list(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter); /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -99,11 +99,10 @@ public interface Examples { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<LabeledUtterance> object */ - @Deprecated Observable> listAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter); /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @return the first stage of the list call */ @@ -187,7 +186,7 @@ interface ExamplesListDefinition extends /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -200,7 +199,7 @@ interface ExamplesListDefinition extends OperationStatus delete(UUID appId, String versionId, int exampleId); /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java index 647f5c198b0e..c233a03388a6 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java @@ -13,10 +13,12 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdatePhraseListOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.FeaturesResponseObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelFeatureInformation; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PhraselistCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PhraseListFeatureInfo; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PhraselistUpdateObject; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -28,7 +30,7 @@ public interface Features { /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -42,7 +44,7 @@ public interface Features { int addPhraseList(UUID appId, String versionId, PhraselistCreateObject phraselistCreateObject); /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -55,7 +57,7 @@ public interface Features { /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -65,11 +67,10 @@ public interface Features { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<PhraseListFeatureInfo> object if successful. */ - @Deprecated List listPhraseLists(UUID appId, String versionId, ListPhraseListsOptionalParameter listPhraseListsOptionalParameter); /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -77,11 +78,10 @@ public interface Features { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PhraseListFeatureInfo> object */ - @Deprecated Observable> listPhraseListsAsync(UUID appId, String versionId, ListPhraseListsOptionalParameter listPhraseListsOptionalParameter); /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @return the first stage of the listPhraseLists call */ @@ -164,7 +164,7 @@ interface FeaturesListPhraseListsDefinition extends } /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -174,11 +174,10 @@ interface FeaturesListPhraseListsDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the FeaturesResponseObject object if successful. */ - @Deprecated FeaturesResponseObject list(UUID appId, String versionId, ListFeaturesOptionalParameter listOptionalParameter); /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -186,11 +185,10 @@ interface FeaturesListPhraseListsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the FeaturesResponseObject object */ - @Deprecated Observable listAsync(UUID appId, String versionId, ListFeaturesOptionalParameter listOptionalParameter); /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @return the first stage of the list call */ @@ -274,7 +272,7 @@ interface FeaturesListDefinition extends /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -287,7 +285,7 @@ interface FeaturesListDefinition extends PhraseListFeatureInfo getPhraseList(UUID appId, String versionId, int phraselistId); /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -299,7 +297,7 @@ interface FeaturesListDefinition extends /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -310,11 +308,10 @@ interface FeaturesListDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updatePhraseList(UUID appId, String versionId, int phraselistId, UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter); /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -323,11 +320,10 @@ interface FeaturesListDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updatePhraseListAsync(UUID appId, String versionId, int phraselistId, UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter); /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @return the first stage of the updatePhraseList call */ @@ -417,7 +413,7 @@ interface FeaturesUpdatePhraseListDefinition extends /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -430,7 +426,7 @@ interface FeaturesUpdatePhraseListDefinition extends OperationStatus deletePhraseList(UUID appId, String versionId, int phraselistId); /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -441,4 +437,60 @@ interface FeaturesUpdatePhraseListDefinition extends Observable deletePhraseListAsync(UUID appId, String versionId, int phraselistId); + + /** + * Adds a new feature relation to be used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus addIntentFeature(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationCreateObject); + + /** + * Adds a new feature relation to be used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable addIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationCreateObject); + + + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus addEntityFeature(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject); + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable addEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject); + + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java index 065cc8cbd49e..b885e4279516 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java @@ -143,4 +143,16 @@ public interface LUISAuthoringClient { */ Patterns patterns(); + /** + * Gets the Settings object to access its operations. + * @return the Settings object. + */ + Settings settings(); + + /** + * Gets the AzureAccounts object to access its operations. + * @return the AzureAccounts object. + */ + AzureAccounts azureAccounts(); + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java index 4621eb789197..45296f75721a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java @@ -29,7 +29,7 @@ public class LUISAuthoringManager { * @return the Language Understanding Authoring API client */ public static LUISAuthoringClient authenticate(EndpointAPI endpointAPI, String luisAuthoringKey) { - return authenticate(String.format("https://%s/luis/api/v2.0/", endpointAPI.toString()), luisAuthoringKey) + return authenticate(String.format("https://%s/luis/authoring/v3.0-preview", endpointAPI.toString()), luisAuthoringKey) .withEndpoint(endpointAPI.toString()); } @@ -78,7 +78,7 @@ public Response intercept(Chain chain) throws IOException { * @return the Language Understanding (LUIS) Authoring API client */ public static LUISAuthoringClient authenticate(EndpointAPI endpointAPI, ServiceClientCredentials credentials) { - return authenticate(String.format("https://%s/luis/api/v2.0/", endpointAPI), credentials) + return authenticate(String.format("https://%s/luis/authoring/v3.0-preview", endpointAPI), credentials) .withEndpoint(endpointAPI.toString()); } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java index 95e2a1be6950..6480f63253c7 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java @@ -10,7 +10,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddIntentOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddEntityOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListEntitiesOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListHierarchicalEntitiesOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListCompositeEntitiesOptionalParameter; @@ -20,16 +19,15 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ExamplesMethodOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateIntentOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.DeleteIntentOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateEntityOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateHierarchicalEntityOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatchClosedListOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetIntentSuggestionsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetEntitySuggestionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentSuggestionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListEntitySuggestionsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddCustomPrebuiltDomainModelsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateHierarchicalEntityChildOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddHierarchicalEntityChildOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddCompositeEntityChildOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetRegexEntityInfosOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetPatternAnyEntityInfosOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListRegexEntityInfosOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListPatternAnyEntityInfosOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreateEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreatePrebuiltEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreateClosedListEntityRoleOptionalParameter; @@ -48,8 +46,8 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateHierarchicalEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateCustomPrebuiltEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateExplicitListItemOptionalParameter; -import com.microsoft.azure.CloudException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AvailablePrebuiltEntityModel; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ChildEntityModelCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListModelCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListModelUpdateObject; @@ -58,16 +56,19 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CustomPrebuiltModel; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntitiesSuggestionExample; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityExtractor; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityModelCreateObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityModelUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityRole; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ExplicitListItem; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalChildEntity; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalEntityExtractor; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalEntityModel; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.IntentClassifier; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.IntentsSuggestionExample; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabelTextObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelFeatureInformation; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelInfoResponse; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.NDepthEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternAnyEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternAnyModelCreateObject; @@ -79,6 +80,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.RegexModelUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.WordListBaseUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.WordListObject; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -89,21 +91,20 @@ */ public interface Models { /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param addIntentOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID addIntent(UUID appId, String versionId, AddIntentOptionalParameter addIntentOptionalParameter); /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -111,11 +112,10 @@ public interface Models { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable addIntentAsync(UUID appId, String versionId, AddIntentOptionalParameter addIntentOptionalParameter); /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @return the first stage of the addIntent call */ @@ -191,7 +191,7 @@ interface ModelsAddIntentDefinition extends } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -201,11 +201,10 @@ interface ModelsAddIntentDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<IntentClassifier> object if successful. */ - @Deprecated List listIntents(UUID appId, String versionId, ListIntentsOptionalParameter listIntentsOptionalParameter); /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -213,11 +212,10 @@ interface ModelsAddIntentDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<IntentClassifier> object */ - @Deprecated Observable> listIntentsAsync(UUID appId, String versionId, ListIntentsOptionalParameter listIntentsOptionalParameter); /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @return the first stage of the listIntents call */ @@ -299,110 +297,34 @@ interface ModelsListIntentsDefinition extends ModelsListIntentsDefinitionStages.WithExecute { } + /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated - UUID addEntity(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter); + UUID addEntity(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject); /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated - Observable addEntityAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter); - - /** - * Adds an entity extractor to the application. - * - * @return the first stage of the addEntity call - */ - ModelsAddEntityDefinitionStages.WithAppId addEntity(); - - /** - * Grouping of addEntity definition stages. - */ - interface ModelsAddEntityDefinitionStages { - /** - * The stage of the definition to be specify appId. - */ - interface WithAppId { - /** - * The application ID. - * - * @return next definition stage - */ - WithVersionId withAppId(UUID appId); - } - /** - * The stage of the definition to be specify versionId. - */ - interface WithVersionId { - /** - * The version ID. - * - * @return next definition stage - */ - ModelsAddEntityDefinitionStages.WithExecute withVersionId(String versionId); - } - - /** - * The stage of the definition which allows for any other optional settings to be specified. - */ - interface WithAllOptions { - /** - * Name of the new entity extractor. - * - * @return next definition stage - */ - ModelsAddEntityDefinitionStages.WithExecute withName(String name); - - } - - /** - * The last stage of the definition which will make the operation call. - */ - interface WithExecute extends ModelsAddEntityDefinitionStages.WithAllOptions { - /** - * Execute the request. - * - * @return the UUID object if successful. - */ - UUID execute(); - - /** - * Execute the request asynchronously. - * - * @return the observable to the UUID object - */ - Observable executeAsync(); - } - } + Observable addEntityAsync(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject); - /** - * The entirety of addEntity definition. - */ - interface ModelsAddEntityDefinition extends - ModelsAddEntityDefinitionStages.WithAppId, - ModelsAddEntityDefinitionStages.WithVersionId, - ModelsAddEntityDefinitionStages.WithExecute { - } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -410,25 +332,23 @@ interface ModelsAddEntityDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the List<EntityExtractor> object if successful. + * @return the List<NDepthEntityExtractor> object if successful. */ - @Deprecated - List listEntities(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); + List listEntities(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param listEntitiesOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<EntityExtractor> object + * @return the observable to the List<NDepthEntityExtractor> object */ - @Deprecated - Observable> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); + Observable> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @return the first stage of the listEntities call */ @@ -488,16 +408,16 @@ interface WithExecute extends ModelsListEntitiesDefinitionStages.WithAllOptions /** * Execute the request. * - * @return the List<EntityExtractor> object if successful. + * @return the List<NDepthEntityExtractor> object if successful. */ - List execute(); + List execute(); /** * Execute the request asynchronously. * - * @return the observable to the List<EntityExtractor> object + * @return the observable to the List<NDepthEntityExtractor> object */ - Observable> executeAsync(); + Observable> executeAsync(); } } @@ -510,34 +430,8 @@ interface ModelsListEntitiesDefinition extends ModelsListEntitiesDefinitionStages.WithExecute { } - - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UUID object if successful. - */ - UUID addHierarchicalEntity(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject); - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - Observable addHierarchicalEntityAsync(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject); - - - /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -547,11 +441,10 @@ interface ModelsListEntitiesDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<HierarchicalEntityExtractor> object if successful. */ - @Deprecated List listHierarchicalEntities(UUID appId, String versionId, ListHierarchicalEntitiesOptionalParameter listHierarchicalEntitiesOptionalParameter); /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -559,11 +452,10 @@ interface ModelsListEntitiesDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<HierarchicalEntityExtractor> object */ - @Deprecated Observable> listHierarchicalEntitiesAsync(UUID appId, String versionId, ListHierarchicalEntitiesOptionalParameter listHierarchicalEntitiesOptionalParameter); /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @return the first stage of the listHierarchicalEntities call */ @@ -645,34 +537,8 @@ interface ModelsListHierarchicalEntitiesDefinition extends ModelsListHierarchicalEntitiesDefinitionStages.WithExecute { } - - /** - * Adds a composite entity extractor to the application. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param compositeModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UUID object if successful. - */ - UUID addCompositeEntity(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject); - - /** - * Adds a composite entity extractor to the application. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param compositeModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - Observable addCompositeEntityAsync(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject); - - /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -682,11 +548,10 @@ interface ModelsListHierarchicalEntitiesDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<CompositeEntityExtractor> object if successful. */ - @Deprecated List listCompositeEntities(UUID appId, String versionId, ListCompositeEntitiesOptionalParameter listCompositeEntitiesOptionalParameter); /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -694,11 +559,10 @@ interface ModelsListHierarchicalEntitiesDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<CompositeEntityExtractor> object */ - @Deprecated Observable> listCompositeEntitiesAsync(UUID appId, String versionId, ListCompositeEntitiesOptionalParameter listCompositeEntitiesOptionalParameter); /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @return the first stage of the listCompositeEntities call */ @@ -781,7 +645,7 @@ interface ModelsListCompositeEntitiesDefinition extends } /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -791,11 +655,10 @@ interface ModelsListCompositeEntitiesDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<ClosedListEntityExtractor> object if successful. */ - @Deprecated List listClosedLists(UUID appId, String versionId, ListClosedListsOptionalParameter listClosedListsOptionalParameter); /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -803,11 +666,10 @@ interface ModelsListCompositeEntitiesDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<ClosedListEntityExtractor> object */ - @Deprecated Observable> listClosedListsAsync(UUID appId, String versionId, ListClosedListsOptionalParameter listClosedListsOptionalParameter); /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @return the first stage of the listClosedLists call */ @@ -891,11 +753,11 @@ interface ModelsListClosedListsDefinition extends /** - * Adds a closed list model to the application. + * Adds a list entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -904,11 +766,11 @@ interface ModelsListClosedListsDefinition extends UUID addClosedList(UUID appId, String versionId, ClosedListModelCreateObject closedListModelCreateObject); /** - * Adds a closed list model to the application. + * Adds a list entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -917,7 +779,7 @@ interface ModelsListClosedListsDefinition extends /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -930,7 +792,7 @@ interface ModelsListClosedListsDefinition extends List addPrebuilt(UUID appId, String versionId, List prebuiltExtractorNames); /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -942,7 +804,7 @@ interface ModelsListClosedListsDefinition extends /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -952,11 +814,10 @@ interface ModelsListClosedListsDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<PrebuiltEntityExtractor> object if successful. */ - @Deprecated List listPrebuilts(UUID appId, String versionId, ListPrebuiltsOptionalParameter listPrebuiltsOptionalParameter); /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -964,11 +825,10 @@ interface ModelsListClosedListsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PrebuiltEntityExtractor> object */ - @Deprecated Observable> listPrebuiltsAsync(UUID appId, String versionId, ListPrebuiltsOptionalParameter listPrebuiltsOptionalParameter); /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @return the first stage of the listPrebuilts call */ @@ -1052,7 +912,7 @@ interface ModelsListPrebuiltsDefinition extends /** - * Gets all the available prebuilt entity extractors for the application. + * Gets all the available prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1064,7 +924,7 @@ interface ModelsListPrebuiltsDefinition extends List listPrebuiltEntities(UUID appId, String versionId); /** - * Gets all the available prebuilt entity extractors for the application. + * Gets all the available prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1075,7 +935,7 @@ interface ModelsListPrebuiltsDefinition extends /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1085,11 +945,10 @@ interface ModelsListPrebuiltsDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<ModelInfoResponse> object if successful. */ - @Deprecated List listModels(UUID appId, String versionId, ListModelsOptionalParameter listModelsOptionalParameter); /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1097,11 +956,10 @@ interface ModelsListPrebuiltsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<ModelInfoResponse> object */ - @Deprecated Observable> listModelsAsync(UUID appId, String versionId, ListModelsOptionalParameter listModelsOptionalParameter); /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @return the first stage of the listModels call */ @@ -1184,7 +1042,7 @@ interface ModelsListModelsDefinition extends } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1195,11 +1053,10 @@ interface ModelsListModelsDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<LabelTextObject> object if successful. */ - @Deprecated List examplesMethod(UUID appId, String versionId, String modelId, ExamplesMethodOptionalParameter examplesMethodOptionalParameter); /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1208,11 +1065,10 @@ interface ModelsListModelsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<LabelTextObject> object */ - @Deprecated Observable> examplesMethodAsync(UUID appId, String versionId, String modelId, ExamplesMethodOptionalParameter examplesMethodOptionalParameter); /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @return the first stage of the examplesMethod call */ @@ -1308,7 +1164,7 @@ interface ModelsExamplesMethodDefinition extends /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1321,7 +1177,7 @@ interface ModelsExamplesMethodDefinition extends IntentClassifier getIntent(UUID appId, String versionId, UUID intentId); /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1333,7 +1189,7 @@ interface ModelsExamplesMethodDefinition extends /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1344,11 +1200,10 @@ interface ModelsExamplesMethodDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateIntent(UUID appId, String versionId, UUID intentId, UpdateIntentOptionalParameter updateIntentOptionalParameter); /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1357,11 +1212,10 @@ interface ModelsExamplesMethodDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateIntentAsync(UUID appId, String versionId, UUID intentId, UpdateIntentOptionalParameter updateIntentOptionalParameter); /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @return the first stage of the updateIntent call */ @@ -1449,7 +1303,7 @@ interface ModelsUpdateIntentDefinition extends } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1460,11 +1314,10 @@ interface ModelsUpdateIntentDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus deleteIntent(UUID appId, String versionId, UUID intentId, DeleteIntentOptionalParameter deleteIntentOptionalParameter); /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1473,11 +1326,10 @@ interface ModelsUpdateIntentDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable deleteIntentAsync(UUID appId, String versionId, UUID intentId, DeleteIntentOptionalParameter deleteIntentOptionalParameter); /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @return the first stage of the deleteIntent call */ @@ -1526,8 +1378,8 @@ interface WithIntentId { */ interface WithAllOptions { /** - * Also delete the intent's utterances (true). Or move the utterances to the None intent (false - the default - * value). + * If true, deletes the intent's example utterances. If false, moves the example utterances to the None intent. + * The default value is false. * * @return next definition stage */ @@ -1567,7 +1419,7 @@ interface ModelsDeleteIntentDefinition extends /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1575,167 +1427,247 @@ interface ModelsDeleteIntentDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the EntityExtractor object if successful. + * @return the NDepthEntityExtractor object if successful. */ - EntityExtractor getEntity(UUID appId, String versionId, UUID entityId); + NDepthEntityExtractor getEntity(UUID appId, String versionId, UUID entityId); /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the EntityExtractor object + * @return the observable to the NDepthEntityExtractor object */ - Observable getEntityAsync(UUID appId, String versionId, UUID entityId); + Observable getEntityAsync(UUID appId, String versionId, UUID entityId); + /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated - OperationStatus updateEntity(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter); + OperationStatus deleteEntity(UUID appId, String versionId, UUID entityId); /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated - Observable updateEntityAsync(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter); + Observable deleteEntityAsync(UUID appId, String versionId, UUID entityId); + + /** - * Updates the name of an entity extractor. + * Updates the name of an entity extractor or the name and instanceOf model of a child entity + * extractor. * - * @return the first stage of the updateEntity call + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a + * child entity extractor. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. */ - ModelsUpdateEntityDefinitionStages.WithAppId updateEntity(); + OperationStatus updateEntityChild(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject); /** - * Grouping of updateEntity definition stages. + * Updates the name of an entity extractor or the name and instanceOf model of a child entity + * extractor. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a + * child entity extractor. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object */ - interface ModelsUpdateEntityDefinitionStages { - /** - * The stage of the definition to be specify appId. - */ - interface WithAppId { - /** - * The application ID. - * - * @return next definition stage - */ - WithVersionId withAppId(UUID appId); - } - /** - * The stage of the definition to be specify versionId. - */ - interface WithVersionId { - /** - * The version ID. - * - * @return next definition stage - */ - WithEntityId withVersionId(String versionId); - } - /** - * The stage of the definition to be specify entityId. - */ - interface WithEntityId { - /** - * The entity extractor ID. - * - * @return next definition stage - */ - ModelsUpdateEntityDefinitionStages.WithExecute withEntityId(UUID entityId); - } + Observable updateEntityChildAsync(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject); - /** - * The stage of the definition which allows for any other optional settings to be specified. - */ - interface WithAllOptions { - /** - * The entity's new name. - * - * @return next definition stage - */ - ModelsUpdateEntityDefinitionStages.WithExecute withName(String name); - } - /** - * The last stage of the definition which will make the operation call. - */ - interface WithExecute extends ModelsUpdateEntityDefinitionStages.WithAllOptions { - /** - * Execute the request. - * - * @return the OperationStatus object if successful. - */ - OperationStatus execute(); + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ModelFeatureInformation> object if successful. + */ + List getIntentFeatures(UUID appId, String versionId, UUID intentId); + + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + Observable> getIntentFeaturesAsync(UUID appId, String versionId, UUID intentId); + - /** - * Execute the request asynchronously. - * - * @return the observable to the OperationStatus object - */ - Observable executeAsync(); - } - } /** - * The entirety of updateEntity definition. + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. */ - interface ModelsUpdateEntityDefinition extends - ModelsUpdateEntityDefinitionStages.WithAppId, - ModelsUpdateEntityDefinitionStages.WithVersionId, - ModelsUpdateEntityDefinitionStages.WithEntityId, - ModelsUpdateEntityDefinitionStages.WithExecute { - } + OperationStatus replaceIntentFeatures(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject); + + /** + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable replaceIntentFeaturesAsync(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject); + /** - * Deletes an entity extractor from the application. + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus deleteIntentFeature(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject); + + /** + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable deleteIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject); + + + + /** + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ModelFeatureInformation> object if successful. + */ + List getEntityFeatures(UUID appId, String versionId, UUID entityId); + + /** + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + Observable> getEntityFeaturesAsync(UUID appId, String versionId, UUID entityId); + + + + /** + * Updates the information of the features used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - OperationStatus deleteEntity(UUID appId, String versionId, UUID entityId); + OperationStatus replaceEntityFeatures(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject); /** - * Deletes an entity extractor from the application. + * Updates the information of the features used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - Observable deleteEntityAsync(UUID appId, String versionId, UUID entityId); + Observable replaceEntityFeaturesAsync(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject); + + + + /** + * Deletes a relation from the feature relations used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus deleteEntityFeature(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject); + + /** + * Deletes a relation from the feature relations used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable deleteEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject); /** - * Gets information about the hierarchical entity model. + * Gets information about a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1748,7 +1680,7 @@ interface ModelsUpdateEntityDefinition extends HierarchicalEntityExtractor getHierarchicalEntity(UUID appId, String versionId, UUID hEntityId); /** - * Gets information about the hierarchical entity model. + * Gets information about a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1759,37 +1691,123 @@ interface ModelsUpdateEntityDefinition extends Observable getHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId); - /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - OperationStatus updateHierarchicalEntity(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject); + OperationStatus updateHierarchicalEntity(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter); /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - Observable updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject); + Observable updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter); + + /** + * Updates the name of a hierarchical entity model in a version of the application. + * + * @return the first stage of the updateHierarchicalEntity call + */ + ModelsUpdateHierarchicalEntityDefinitionStages.WithAppId updateHierarchicalEntity(); + /** + * Grouping of updateHierarchicalEntity definition stages. + */ + interface ModelsUpdateHierarchicalEntityDefinitionStages { + /** + * The stage of the definition to be specify appId. + */ + interface WithAppId { + /** + * The application ID. + * + * @return next definition stage + */ + WithVersionId withAppId(UUID appId); + } + /** + * The stage of the definition to be specify versionId. + */ + interface WithVersionId { + /** + * The version ID. + * + * @return next definition stage + */ + WithHEntityId withVersionId(String versionId); + } + /** + * The stage of the definition to be specify hEntityId. + */ + interface WithHEntityId { + /** + * The hierarchical entity extractor ID. + * + * @return next definition stage + */ + ModelsUpdateHierarchicalEntityDefinitionStages.WithExecute withHEntityId(UUID hEntityId); + } + + /** + * The stage of the definition which allows for any other optional settings to be specified. + */ + interface WithAllOptions { + /** + * The entity's new name. + * + * @return next definition stage + */ + ModelsUpdateHierarchicalEntityDefinitionStages.WithExecute withName(String name); + + } + + /** + * The last stage of the definition which will make the operation call. + */ + interface WithExecute extends ModelsUpdateHierarchicalEntityDefinitionStages.WithAllOptions { + /** + * Execute the request. + * + * @return the OperationStatus object if successful. + */ + OperationStatus execute(); + + /** + * Execute the request asynchronously. + * + * @return the observable to the OperationStatus object + */ + Observable executeAsync(); + } + } + + /** + * The entirety of updateHierarchicalEntity definition. + */ + interface ModelsUpdateHierarchicalEntityDefinition extends + ModelsUpdateHierarchicalEntityDefinitionStages.WithAppId, + ModelsUpdateHierarchicalEntityDefinitionStages.WithVersionId, + ModelsUpdateHierarchicalEntityDefinitionStages.WithHEntityId, + ModelsUpdateHierarchicalEntityDefinitionStages.WithExecute { + } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1802,7 +1820,7 @@ interface ModelsUpdateEntityDefinition extends OperationStatus deleteHierarchicalEntity(UUID appId, String versionId, UUID hEntityId); /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1815,7 +1833,7 @@ interface ModelsUpdateEntityDefinition extends /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1828,7 +1846,7 @@ interface ModelsUpdateEntityDefinition extends CompositeEntityExtractor getCompositeEntity(UUID appId, String versionId, UUID cEntityId); /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1841,7 +1859,7 @@ interface ModelsUpdateEntityDefinition extends /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1855,7 +1873,7 @@ interface ModelsUpdateEntityDefinition extends OperationStatus updateCompositeEntity(UUID appId, String versionId, UUID cEntityId, CompositeEntityModel compositeModelUpdateObject); /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1869,7 +1887,7 @@ interface ModelsUpdateEntityDefinition extends /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1882,7 +1900,7 @@ interface ModelsUpdateEntityDefinition extends OperationStatus deleteCompositeEntity(UUID appId, String versionId, UUID cEntityId); /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1895,11 +1913,11 @@ interface ModelsUpdateEntityDefinition extends /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -1908,11 +1926,11 @@ interface ModelsUpdateEntityDefinition extends ClosedListEntityExtractor getClosedList(UUID appId, String versionId, UUID clEntityId); /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClosedListEntityExtractor object */ @@ -1921,12 +1939,12 @@ interface ModelsUpdateEntityDefinition extends /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -1935,12 +1953,12 @@ interface ModelsUpdateEntityDefinition extends OperationStatus updateClosedList(UUID appId, String versionId, UUID clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject); /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -1948,35 +1966,33 @@ interface ModelsUpdateEntityDefinition extends /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param patchClosedListOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus patchClosedList(UUID appId, String versionId, UUID clEntityId, PatchClosedListOptionalParameter patchClosedListOptionalParameter); /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param patchClosedListOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable patchClosedListAsync(UUID appId, String versionId, UUID clEntityId, PatchClosedListOptionalParameter patchClosedListOptionalParameter); /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @return the first stage of the patchClosedList call */ @@ -2013,7 +2029,7 @@ interface WithVersionId { */ interface WithClEntityId { /** - * The closed list model ID. + * The list entity model ID. * * @return next definition stage */ @@ -2065,11 +2081,11 @@ interface ModelsPatchClosedListDefinition extends /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -2078,11 +2094,11 @@ interface ModelsPatchClosedListDefinition extends OperationStatus deleteClosedList(UUID appId, String versionId, UUID clEntityId); /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -2091,7 +2107,7 @@ interface ModelsPatchClosedListDefinition extends /** - * Gets information about the prebuilt entity model. + * Gets information about a prebuilt entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2104,7 +2120,7 @@ interface ModelsPatchClosedListDefinition extends PrebuiltEntityExtractor getPrebuilt(UUID appId, String versionId, UUID prebuiltId); /** - * Gets information about the prebuilt entity model. + * Gets information about a prebuilt entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2117,7 +2133,7 @@ interface ModelsPatchClosedListDefinition extends /** - * Deletes a prebuilt entity extractor from the application. + * Deletes a prebuilt entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2130,7 +2146,7 @@ interface ModelsPatchClosedListDefinition extends OperationStatus deletePrebuilt(UUID appId, String versionId, UUID prebuiltId); /** - * Deletes a prebuilt entity extractor from the application. + * Deletes a prebuilt entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2143,39 +2159,39 @@ interface ModelsPatchClosedListDefinition extends /** - * Deletes a sublist of a specific closed list model. + * Deletes a sublist of a specific list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - OperationStatus deleteSubList(UUID appId, String versionId, UUID clEntityId, int subListId); + OperationStatus deleteSubList(UUID appId, String versionId, UUID clEntityId, long subListId); /** - * Deletes a sublist of a specific closed list model. + * Deletes a sublist of a specific list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - Observable deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId); + Observable deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId); /** - * Updates one of the closed list's sublists. + * Updates one of the list entity's sublists in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and the list of words. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -2183,61 +2199,62 @@ interface ModelsPatchClosedListDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - OperationStatus updateSubList(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject); + OperationStatus updateSubList(UUID appId, String versionId, UUID clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject); /** - * Updates one of the closed list's sublists. + * Updates one of the list entity's sublists in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and the list of words. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - Observable updateSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject); + Observable updateSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject); /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<IntentsSuggestionExample> object if successful. */ - @Deprecated - List getIntentSuggestions(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter); + List listIntentSuggestions(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter); /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<IntentsSuggestionExample> object */ - @Deprecated - Observable> getIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter); + Observable> listIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter); /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the + * application. * - * @return the first stage of the getIntentSuggestions call + * @return the first stage of the listIntentSuggestions call */ - ModelsGetIntentSuggestionsDefinitionStages.WithAppId getIntentSuggestions(); + ModelsListIntentSuggestionsDefinitionStages.WithAppId listIntentSuggestions(); /** - * Grouping of getIntentSuggestions definition stages. + * Grouping of listIntentSuggestions definition stages. */ - interface ModelsGetIntentSuggestionsDefinitionStages { + interface ModelsListIntentSuggestionsDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -2269,7 +2286,7 @@ interface WithIntentId { * * @return next definition stage */ - ModelsGetIntentSuggestionsDefinitionStages.WithExecute withIntentId(UUID intentId); + ModelsListIntentSuggestionsDefinitionStages.WithExecute withIntentId(UUID intentId); } /** @@ -2281,14 +2298,14 @@ interface WithAllOptions { * * @return next definition stage */ - ModelsGetIntentSuggestionsDefinitionStages.WithExecute withTake(Integer take); + ModelsListIntentSuggestionsDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends ModelsGetIntentSuggestionsDefinitionStages.WithAllOptions { + interface WithExecute extends ModelsListIntentSuggestionsDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -2306,54 +2323,55 @@ interface WithExecute extends ModelsGetIntentSuggestionsDefinitionStages.WithAll } /** - * The entirety of getIntentSuggestions definition. + * The entirety of listIntentSuggestions definition. */ - interface ModelsGetIntentSuggestionsDefinition extends - ModelsGetIntentSuggestionsDefinitionStages.WithAppId, - ModelsGetIntentSuggestionsDefinitionStages.WithVersionId, - ModelsGetIntentSuggestionsDefinitionStages.WithIntentId, - ModelsGetIntentSuggestionsDefinitionStages.WithExecute { + interface ModelsListIntentSuggestionsDefinition extends + ModelsListIntentSuggestionsDefinitionStages.WithAppId, + ModelsListIntentSuggestionsDefinitionStages.WithVersionId, + ModelsListIntentSuggestionsDefinitionStages.WithIntentId, + ModelsListIntentSuggestionsDefinitionStages.WithExecute { } /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. - * @param getEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntitiesSuggestionExample> object if successful. */ - @Deprecated - List getEntitySuggestions(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter); + List listEntitySuggestions(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter); /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. - * @param getEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntitiesSuggestionExample> object */ - @Deprecated - Observable> getEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter); + Observable> listEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter); /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the + * application. * - * @return the first stage of the getEntitySuggestions call + * @return the first stage of the listEntitySuggestions call */ - ModelsGetEntitySuggestionsDefinitionStages.WithAppId getEntitySuggestions(); + ModelsListEntitySuggestionsDefinitionStages.WithAppId listEntitySuggestions(); /** - * Grouping of getEntitySuggestions definition stages. + * Grouping of listEntitySuggestions definition stages. */ - interface ModelsGetEntitySuggestionsDefinitionStages { + interface ModelsListEntitySuggestionsDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -2385,7 +2403,7 @@ interface WithEntityId { * * @return next definition stage */ - ModelsGetEntitySuggestionsDefinitionStages.WithExecute withEntityId(UUID entityId); + ModelsListEntitySuggestionsDefinitionStages.WithExecute withEntityId(UUID entityId); } /** @@ -2397,14 +2415,14 @@ interface WithAllOptions { * * @return next definition stage */ - ModelsGetEntitySuggestionsDefinitionStages.WithExecute withTake(Integer take); + ModelsListEntitySuggestionsDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends ModelsGetEntitySuggestionsDefinitionStages.WithAllOptions { + interface WithExecute extends ModelsListEntitySuggestionsDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -2422,45 +2440,46 @@ interface WithExecute extends ModelsGetEntitySuggestionsDefinitionStages.WithAll } /** - * The entirety of getEntitySuggestions definition. + * The entirety of listEntitySuggestions definition. */ - interface ModelsGetEntitySuggestionsDefinition extends - ModelsGetEntitySuggestionsDefinitionStages.WithAppId, - ModelsGetEntitySuggestionsDefinitionStages.WithVersionId, - ModelsGetEntitySuggestionsDefinitionStages.WithEntityId, - ModelsGetEntitySuggestionsDefinitionStages.WithExecute { + interface ModelsListEntitySuggestionsDefinition extends + ModelsListEntitySuggestionsDefinitionStages.WithAppId, + ModelsListEntitySuggestionsDefinitionStages.WithVersionId, + ModelsListEntitySuggestionsDefinitionStages.WithEntityId, + ModelsListEntitySuggestionsDefinitionStages.WithExecute { } /** - * Adds a list to an existing closed list. + * Adds a sublist to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the int object if successful. + * @return the long object if successful. */ - int addSubList(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject); + long addSubList(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject); /** - * Adds a list to an existing closed list. + * Adds a sublist to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the int object + * @return the observable to the long object */ - Observable addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject); + Observable addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject); /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. @@ -2470,11 +2489,11 @@ interface ModelsGetEntitySuggestionsDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<UUID> object if successful. */ - @Deprecated List addCustomPrebuiltDomain(UUID appId, String versionId, AddCustomPrebuiltDomainModelsOptionalParameter addCustomPrebuiltDomainOptionalParameter); /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. @@ -2482,11 +2501,11 @@ interface ModelsGetEntitySuggestionsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<UUID> object */ - @Deprecated Observable> addCustomPrebuiltDomainAsync(UUID appId, String versionId, AddCustomPrebuiltDomainModelsOptionalParameter addCustomPrebuiltDomainOptionalParameter); /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the + * application. * * @return the first stage of the addCustomPrebuiltDomain call */ @@ -2563,12 +2582,12 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to - * which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain + * to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -2577,12 +2596,12 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends UUID addCustomPrebuiltIntent(UUID appId, String versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject); /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to - * which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain + * to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -2591,7 +2610,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2603,7 +2622,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends List listCustomPrebuiltIntents(UUID appId, String versionId); /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2615,12 +2634,12 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to - * which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this + * model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -2629,12 +2648,12 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends UUID addCustomPrebuiltEntity(UUID appId, String versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject); /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to - * which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this + * model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -2643,7 +2662,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2655,7 +2674,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends List listCustomPrebuiltEntities(UUID appId, String versionId); /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2667,7 +2686,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -2679,7 +2698,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends List listCustomPrebuiltModels(UUID appId, String versionId); /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -2691,7 +2710,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2704,7 +2723,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends OperationStatus deleteCustomPrebuiltDomain(UUID appId, String versionId, String domainName); /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2717,7 +2736,36 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Gets information about the hierarchical entity child model. + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the UUID object if successful. + */ + UUID addEntityChild(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject); + + /** + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UUID object + */ + Observable addEntityChildAsync(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject); + + + + /** + * Gets information about the child's model contained in an hierarchical entity child model in a + * version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2731,7 +2779,8 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends HierarchicalChildEntity getHierarchicalEntityChild(UUID appId, String versionId, UUID hEntityId, UUID hChildId); /** - * Gets information about the hierarchical entity child model. + * Gets information about the child's model contained in an hierarchical entity child model in a + * version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2744,7 +2793,7 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2756,11 +2805,10 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateHierarchicalEntityChild(UUID appId, String versionId, UUID hEntityId, UUID hChildId, UpdateHierarchicalEntityChildOptionalParameter updateHierarchicalEntityChildOptionalParameter); /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2770,11 +2818,10 @@ interface ModelsAddCustomPrebuiltDomainDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateHierarchicalEntityChildAsync(UUID appId, String versionId, UUID hEntityId, UUID hChildId, UpdateHierarchicalEntityChildOptionalParameter updateHierarchicalEntityChildOptionalParameter); /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @return the first stage of the updateHierarchicalEntityChild call */ @@ -2875,7 +2922,7 @@ interface ModelsUpdateHierarchicalEntityChildDefinition extends /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2889,7 +2936,7 @@ interface ModelsUpdateHierarchicalEntityChildDefinition extends OperationStatus deleteHierarchicalEntityChild(UUID appId, String versionId, UUID hEntityId, UUID hChildId); /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2902,123 +2949,7 @@ interface ModelsUpdateHierarchicalEntityChildDefinition extends /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UUID object if successful. - */ - @Deprecated - UUID addHierarchicalEntityChild(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter); - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - @Deprecated - Observable addHierarchicalEntityChildAsync(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter); - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @return the first stage of the addHierarchicalEntityChild call - */ - ModelsAddHierarchicalEntityChildDefinitionStages.WithAppId addHierarchicalEntityChild(); - - /** - * Grouping of addHierarchicalEntityChild definition stages. - */ - interface ModelsAddHierarchicalEntityChildDefinitionStages { - /** - * The stage of the definition to be specify appId. - */ - interface WithAppId { - /** - * The application ID. - * - * @return next definition stage - */ - WithVersionId withAppId(UUID appId); - } - /** - * The stage of the definition to be specify versionId. - */ - interface WithVersionId { - /** - * The version ID. - * - * @return next definition stage - */ - WithHEntityId withVersionId(String versionId); - } - /** - * The stage of the definition to be specify hEntityId. - */ - interface WithHEntityId { - /** - * The hierarchical entity extractor ID. - * - * @return next definition stage - */ - ModelsAddHierarchicalEntityChildDefinitionStages.WithExecute withHEntityId(UUID hEntityId); - } - - /** - * The stage of the definition which allows for any other optional settings to be specified. - */ - interface WithAllOptions { - /** - * - * - * @return next definition stage - */ - ModelsAddHierarchicalEntityChildDefinitionStages.WithExecute withName(String name); - - } - - /** - * The last stage of the definition which will make the operation call. - */ - interface WithExecute extends ModelsAddHierarchicalEntityChildDefinitionStages.WithAllOptions { - /** - * Execute the request. - * - * @return the UUID object if successful. - */ - UUID execute(); - - /** - * Execute the request asynchronously. - * - * @return the observable to the UUID object - */ - Observable executeAsync(); - } - } - - /** - * The entirety of addHierarchicalEntityChild definition. - */ - interface ModelsAddHierarchicalEntityChildDefinition extends - ModelsAddHierarchicalEntityChildDefinitionStages.WithAppId, - ModelsAddHierarchicalEntityChildDefinitionStages.WithVersionId, - ModelsAddHierarchicalEntityChildDefinitionStages.WithHEntityId, - ModelsAddHierarchicalEntityChildDefinitionStages.WithExecute { - } - - /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3029,11 +2960,10 @@ interface ModelsAddHierarchicalEntityChildDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID addCompositeEntityChild(UUID appId, String versionId, UUID cEntityId, AddCompositeEntityChildOptionalParameter addCompositeEntityChildOptionalParameter); /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3042,11 +2972,10 @@ interface ModelsAddHierarchicalEntityChildDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable addCompositeEntityChildAsync(UUID appId, String versionId, UUID cEntityId, AddCompositeEntityChildOptionalParameter addCompositeEntityChildOptionalParameter); /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @return the first stage of the addCompositeEntityChild call */ @@ -3135,7 +3064,7 @@ interface ModelsAddCompositeEntityChildDefinition extends /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3149,7 +3078,7 @@ interface ModelsAddCompositeEntityChildDefinition extends OperationStatus deleteCompositeEntityChild(UUID appId, String versionId, UUID cEntityId, UUID cChildId); /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3162,42 +3091,40 @@ interface ModelsAddCompositeEntityChildDefinition extends /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<RegexEntityExtractor> object if successful. */ - @Deprecated - List getRegexEntityInfos(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter); + List listRegexEntityInfos(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter); /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<RegexEntityExtractor> object */ - @Deprecated - Observable> getRegexEntityInfosAsync(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter); + Observable> listRegexEntityInfosAsync(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter); /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * - * @return the first stage of the getRegexEntityInfos call + * @return the first stage of the listRegexEntityInfos call */ - ModelsGetRegexEntityInfosDefinitionStages.WithAppId getRegexEntityInfos(); + ModelsListRegexEntityInfosDefinitionStages.WithAppId listRegexEntityInfos(); /** - * Grouping of getRegexEntityInfos definition stages. + * Grouping of listRegexEntityInfos definition stages. */ - interface ModelsGetRegexEntityInfosDefinitionStages { + interface ModelsListRegexEntityInfosDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -3218,7 +3145,7 @@ interface WithVersionId { * * @return next definition stage */ - ModelsGetRegexEntityInfosDefinitionStages.WithExecute withVersionId(String versionId); + ModelsListRegexEntityInfosDefinitionStages.WithExecute withVersionId(String versionId); } /** @@ -3230,21 +3157,21 @@ interface WithAllOptions { * * @return next definition stage */ - ModelsGetRegexEntityInfosDefinitionStages.WithExecute withSkip(Integer skip); + ModelsListRegexEntityInfosDefinitionStages.WithExecute withSkip(Integer skip); /** * The number of entries to return. Maximum page size is 500. Default is 100. * * @return next definition stage */ - ModelsGetRegexEntityInfosDefinitionStages.WithExecute withTake(Integer take); + ModelsListRegexEntityInfosDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends ModelsGetRegexEntityInfosDefinitionStages.WithAllOptions { + interface WithExecute extends ModelsListRegexEntityInfosDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -3262,21 +3189,22 @@ interface WithExecute extends ModelsGetRegexEntityInfosDefinitionStages.WithAllO } /** - * The entirety of getRegexEntityInfos definition. + * The entirety of listRegexEntityInfos definition. */ - interface ModelsGetRegexEntityInfosDefinition extends - ModelsGetRegexEntityInfosDefinitionStages.WithAppId, - ModelsGetRegexEntityInfosDefinitionStages.WithVersionId, - ModelsGetRegexEntityInfosDefinitionStages.WithExecute { + interface ModelsListRegexEntityInfosDefinition extends + ModelsListRegexEntityInfosDefinitionStages.WithAppId, + ModelsListRegexEntityInfosDefinitionStages.WithVersionId, + ModelsListRegexEntityInfosDefinitionStages.WithExecute { } /** - * Adds a regex entity model to the application version. + * Adds a regular expression entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regex entity extractor. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regular expression entity + * extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -3285,11 +3213,12 @@ interface ModelsGetRegexEntityInfosDefinition extends UUID createRegexEntityModel(UUID appId, String versionId, RegexModelCreateObject regexEntityExtractorCreateObj); /** - * Adds a regex entity model to the application version. + * Adds a regular expression entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regex entity extractor. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regular expression entity + * extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -3297,42 +3226,40 @@ interface ModelsGetRegexEntityInfosDefinition extends /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<PatternAnyEntityExtractor> object if successful. */ - @Deprecated - List getPatternAnyEntityInfos(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter); + List listPatternAnyEntityInfos(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter); /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternAnyEntityExtractor> object */ - @Deprecated - Observable> getPatternAnyEntityInfosAsync(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter); + Observable> listPatternAnyEntityInfosAsync(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter); /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * - * @return the first stage of the getPatternAnyEntityInfos call + * @return the first stage of the listPatternAnyEntityInfos call */ - ModelsGetPatternAnyEntityInfosDefinitionStages.WithAppId getPatternAnyEntityInfos(); + ModelsListPatternAnyEntityInfosDefinitionStages.WithAppId listPatternAnyEntityInfos(); /** - * Grouping of getPatternAnyEntityInfos definition stages. + * Grouping of listPatternAnyEntityInfos definition stages. */ - interface ModelsGetPatternAnyEntityInfosDefinitionStages { + interface ModelsListPatternAnyEntityInfosDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -3353,7 +3280,7 @@ interface WithVersionId { * * @return next definition stage */ - ModelsGetPatternAnyEntityInfosDefinitionStages.WithExecute withVersionId(String versionId); + ModelsListPatternAnyEntityInfosDefinitionStages.WithExecute withVersionId(String versionId); } /** @@ -3365,21 +3292,21 @@ interface WithAllOptions { * * @return next definition stage */ - ModelsGetPatternAnyEntityInfosDefinitionStages.WithExecute withSkip(Integer skip); + ModelsListPatternAnyEntityInfosDefinitionStages.WithExecute withSkip(Integer skip); /** * The number of entries to return. Maximum page size is 500. Default is 100. * * @return next definition stage */ - ModelsGetPatternAnyEntityInfosDefinitionStages.WithExecute withTake(Integer take); + ModelsListPatternAnyEntityInfosDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends ModelsGetPatternAnyEntityInfosDefinitionStages.WithAllOptions { + interface WithExecute extends ModelsListPatternAnyEntityInfosDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -3397,17 +3324,17 @@ interface WithExecute extends ModelsGetPatternAnyEntityInfosDefinitionStages.Wit } /** - * The entirety of getPatternAnyEntityInfos definition. + * The entirety of listPatternAnyEntityInfos definition. */ - interface ModelsGetPatternAnyEntityInfosDefinition extends - ModelsGetPatternAnyEntityInfosDefinitionStages.WithAppId, - ModelsGetPatternAnyEntityInfosDefinitionStages.WithVersionId, - ModelsGetPatternAnyEntityInfosDefinitionStages.WithExecute { + interface ModelsListPatternAnyEntityInfosDefinition extends + ModelsListPatternAnyEntityInfosDefinitionStages.WithAppId, + ModelsListPatternAnyEntityInfosDefinitionStages.WithVersionId, + ModelsListPatternAnyEntityInfosDefinitionStages.WithExecute { } /** - * Adds a pattern.any entity extractor to the application. + * Adds a pattern.any entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3420,7 +3347,7 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends UUID createPatternAnyEntityModel(UUID appId, String versionId, PatternAnyModelCreateObject extractorCreateObject); /** - * Adds a pattern.any entity extractor to the application. + * Adds a pattern.any entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3433,7 +3360,7 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for an entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3443,10 +3370,10 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getEntityRoles(UUID appId, String versionId, UUID entityId); + List listEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for an entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3454,11 +3381,11 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3469,11 +3396,10 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createEntityRole(UUID appId, String versionId, UUID entityId, CreateEntityRoleOptionalParameter createEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3482,11 +3408,10 @@ interface ModelsGetPatternAnyEntityInfosDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreateEntityRoleOptionalParameter createEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @return the first stage of the createEntityRole call */ @@ -3575,7 +3500,7 @@ interface ModelsCreateEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3585,10 +3510,10 @@ interface ModelsCreateEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId); + List listPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3596,11 +3521,11 @@ interface ModelsCreateEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3611,11 +3536,10 @@ interface ModelsCreateEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createPrebuiltEntityRole(UUID appId, String versionId, UUID entityId, CreatePrebuiltEntityRoleOptionalParameter createPrebuiltEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3624,11 +3548,10 @@ interface ModelsCreateEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createPrebuiltEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreatePrebuiltEntityRoleOptionalParameter createPrebuiltEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @return the first stage of the createPrebuiltEntityRole call */ @@ -3717,7 +3640,7 @@ interface ModelsCreatePrebuiltEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3727,10 +3650,10 @@ interface ModelsCreatePrebuiltEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getClosedListEntityRoles(UUID appId, String versionId, UUID entityId); + List listClosedListEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3738,11 +3661,11 @@ interface ModelsCreatePrebuiltEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3753,11 +3676,10 @@ interface ModelsCreatePrebuiltEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createClosedListEntityRole(UUID appId, String versionId, UUID entityId, CreateClosedListEntityRoleOptionalParameter createClosedListEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3766,11 +3688,10 @@ interface ModelsCreatePrebuiltEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createClosedListEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreateClosedListEntityRoleOptionalParameter createClosedListEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @return the first stage of the createClosedListEntityRole call */ @@ -3859,7 +3780,7 @@ interface ModelsCreateClosedListEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3869,10 +3790,10 @@ interface ModelsCreateClosedListEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getRegexEntityRoles(UUID appId, String versionId, UUID entityId); + List listRegexEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3880,11 +3801,11 @@ interface ModelsCreateClosedListEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3895,11 +3816,10 @@ interface ModelsCreateClosedListEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createRegexEntityRole(UUID appId, String versionId, UUID entityId, CreateRegexEntityRoleOptionalParameter createRegexEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3908,11 +3828,10 @@ interface ModelsCreateClosedListEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createRegexEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreateRegexEntityRoleOptionalParameter createRegexEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @return the first stage of the createRegexEntityRole call */ @@ -4001,7 +3920,7 @@ interface ModelsCreateRegexEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4011,10 +3930,10 @@ interface ModelsCreateRegexEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getCompositeEntityRoles(UUID appId, String versionId, UUID cEntityId); + List listCompositeEntityRoles(UUID appId, String versionId, UUID cEntityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4022,11 +3941,11 @@ interface ModelsCreateRegexEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId); + Observable> listCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId); /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4037,11 +3956,10 @@ interface ModelsCreateRegexEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createCompositeEntityRole(UUID appId, String versionId, UUID cEntityId, CreateCompositeEntityRoleOptionalParameter createCompositeEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4050,11 +3968,10 @@ interface ModelsCreateRegexEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createCompositeEntityRoleAsync(UUID appId, String versionId, UUID cEntityId, CreateCompositeEntityRoleOptionalParameter createCompositeEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @return the first stage of the createCompositeEntityRole call */ @@ -4143,7 +4060,7 @@ interface ModelsCreateCompositeEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4153,10 +4070,10 @@ interface ModelsCreateCompositeEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getPatternAnyEntityRoles(UUID appId, String versionId, UUID entityId); + List listPatternAnyEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4164,11 +4081,11 @@ interface ModelsCreateCompositeEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4179,11 +4096,10 @@ interface ModelsCreateCompositeEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createPatternAnyEntityRole(UUID appId, String versionId, UUID entityId, CreatePatternAnyEntityRoleOptionalParameter createPatternAnyEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4192,11 +4108,10 @@ interface ModelsCreateCompositeEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createPatternAnyEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreatePatternAnyEntityRoleOptionalParameter createPatternAnyEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @return the first stage of the createPatternAnyEntityRole call */ @@ -4285,7 +4200,7 @@ interface ModelsCreatePatternAnyEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4295,10 +4210,10 @@ interface ModelsCreatePatternAnyEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getHierarchicalEntityRoles(UUID appId, String versionId, UUID hEntityId); + List listHierarchicalEntityRoles(UUID appId, String versionId, UUID hEntityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4306,11 +4221,11 @@ interface ModelsCreatePatternAnyEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId); + Observable> listHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId); /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4321,11 +4236,10 @@ interface ModelsCreatePatternAnyEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createHierarchicalEntityRole(UUID appId, String versionId, UUID hEntityId, CreateHierarchicalEntityRoleOptionalParameter createHierarchicalEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4334,11 +4248,10 @@ interface ModelsCreatePatternAnyEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createHierarchicalEntityRoleAsync(UUID appId, String versionId, UUID hEntityId, CreateHierarchicalEntityRoleOptionalParameter createHierarchicalEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @return the first stage of the createHierarchicalEntityRole call */ @@ -4427,7 +4340,7 @@ interface ModelsCreateHierarchicalEntityRoleDefinition extends /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4437,10 +4350,10 @@ interface ModelsCreateHierarchicalEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - List getCustomPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId); + List listCustomPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId); /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4448,11 +4361,11 @@ interface ModelsCreateHierarchicalEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - Observable> getCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId); + Observable> listCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4463,11 +4376,10 @@ interface ModelsCreateHierarchicalEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - @Deprecated UUID createCustomPrebuiltEntityRole(UUID appId, String versionId, UUID entityId, CreateCustomPrebuiltEntityRoleOptionalParameter createCustomPrebuiltEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4476,11 +4388,10 @@ interface ModelsCreateHierarchicalEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - @Deprecated Observable createCustomPrebuiltEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreateCustomPrebuiltEntityRoleOptionalParameter createCustomPrebuiltEntityRoleOptionalParameter); /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @return the first stage of the createCustomPrebuiltEntityRole call */ @@ -4569,7 +4480,7 @@ interface ModelsCreateCustomPrebuiltEntityRoleDefinition extends /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4582,7 +4493,7 @@ interface ModelsCreateCustomPrebuiltEntityRoleDefinition extends List getExplicitList(UUID appId, String versionId, UUID entityId); /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4594,7 +4505,7 @@ interface ModelsCreateCustomPrebuiltEntityRoleDefinition extends /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4605,11 +4516,10 @@ interface ModelsCreateCustomPrebuiltEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the int object if successful. */ - @Deprecated int addExplicitListItem(UUID appId, String versionId, UUID entityId, AddExplicitListItemOptionalParameter addExplicitListItemOptionalParameter); /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4618,11 +4528,10 @@ interface ModelsCreateCustomPrebuiltEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the int object */ - @Deprecated Observable addExplicitListItemAsync(UUID appId, String versionId, UUID entityId, AddExplicitListItemOptionalParameter addExplicitListItemOptionalParameter); /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @return the first stage of the addExplicitListItem call */ @@ -4711,11 +4620,11 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -4724,11 +4633,11 @@ interface ModelsAddExplicitListItemDefinition extends RegexEntityExtractor getRegexEntityEntityInfo(UUID appId, String versionId, UUID regexEntityId); /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RegexEntityExtractor object */ @@ -4737,11 +4646,11 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -4751,11 +4660,11 @@ interface ModelsAddExplicitListItemDefinition extends OperationStatus updateRegexEntityModel(UUID appId, String versionId, UUID regexEntityId, RegexModelUpdateObject regexEntityUpdateObject); /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -4765,11 +4674,11 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -4778,11 +4687,11 @@ interface ModelsAddExplicitListItemDefinition extends OperationStatus deleteRegexEntityModel(UUID appId, String versionId, UUID regexEntityId); /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -4791,7 +4700,7 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4804,7 +4713,7 @@ interface ModelsAddExplicitListItemDefinition extends PatternAnyEntityExtractor getPatternAnyEntityInfo(UUID appId, String versionId, UUID entityId); /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4817,7 +4726,8 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. @@ -4831,7 +4741,8 @@ interface ModelsAddExplicitListItemDefinition extends OperationStatus updatePatternAnyEntityModel(UUID appId, String versionId, UUID entityId, PatternAnyModelUpdateObject patternAnyUpdateObject); /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. @@ -4845,7 +4756,7 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4858,7 +4769,7 @@ interface ModelsAddExplicitListItemDefinition extends OperationStatus deletePatternAnyEntityModel(UUID appId, String versionId, UUID entityId); /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4871,7 +4782,7 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4885,7 +4796,7 @@ interface ModelsAddExplicitListItemDefinition extends EntityRole getEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4898,7 +4809,7 @@ interface ModelsAddExplicitListItemDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4910,11 +4821,10 @@ interface ModelsAddExplicitListItemDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateEntityRoleOptionalParameter updateEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4924,11 +4834,10 @@ interface ModelsAddExplicitListItemDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateEntityRoleOptionalParameter updateEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @return the first stage of the updateEntityRole call */ @@ -5029,7 +4938,7 @@ interface ModelsUpdateEntityRoleDefinition extends /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5043,7 +4952,7 @@ interface ModelsUpdateEntityRoleDefinition extends OperationStatus deleteEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5057,7 +4966,7 @@ interface ModelsUpdateEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5071,7 +4980,7 @@ interface ModelsUpdateEntityRoleDefinition extends EntityRole getPrebuiltEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5084,7 +4993,7 @@ interface ModelsUpdateEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5096,11 +5005,10 @@ interface ModelsUpdateEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updatePrebuiltEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePrebuiltEntityRoleOptionalParameter updatePrebuiltEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5110,11 +5018,10 @@ interface ModelsUpdateEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updatePrebuiltEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePrebuiltEntityRoleOptionalParameter updatePrebuiltEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @return the first stage of the updatePrebuiltEntityRole call */ @@ -5215,7 +5122,7 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5229,7 +5136,7 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends OperationStatus deletePrebuiltEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5243,7 +5150,7 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5257,7 +5164,7 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends EntityRole getClosedListEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5270,7 +5177,7 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5282,11 +5189,10 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateClosedListEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateClosedListEntityRoleOptionalParameter updateClosedListEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5296,11 +5202,10 @@ interface ModelsUpdatePrebuiltEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateClosedListEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateClosedListEntityRoleOptionalParameter updateClosedListEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @return the first stage of the updateClosedListEntityRole call */ @@ -5401,7 +5306,7 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5415,7 +5320,7 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends OperationStatus deleteClosedListEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5429,7 +5334,7 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5443,7 +5348,7 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends EntityRole getRegexEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5456,7 +5361,7 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5468,11 +5373,10 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateRegexEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateRegexEntityRoleOptionalParameter updateRegexEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5482,11 +5386,10 @@ interface ModelsUpdateClosedListEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateRegexEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateRegexEntityRoleOptionalParameter updateRegexEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @return the first stage of the updateRegexEntityRole call */ @@ -5587,7 +5490,7 @@ interface ModelsUpdateRegexEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5601,7 +5504,7 @@ interface ModelsUpdateRegexEntityRoleDefinition extends OperationStatus deleteRegexEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5615,7 +5518,7 @@ interface ModelsUpdateRegexEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5629,7 +5532,7 @@ interface ModelsUpdateRegexEntityRoleDefinition extends EntityRole getCompositeEntityRole(UUID appId, String versionId, UUID cEntityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5642,7 +5545,7 @@ interface ModelsUpdateRegexEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5654,11 +5557,10 @@ interface ModelsUpdateRegexEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateCompositeEntityRole(UUID appId, String versionId, UUID cEntityId, UUID roleId, UpdateCompositeEntityRoleOptionalParameter updateCompositeEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5668,11 +5570,10 @@ interface ModelsUpdateRegexEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateCompositeEntityRoleAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId, UpdateCompositeEntityRoleOptionalParameter updateCompositeEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @return the first stage of the updateCompositeEntityRole call */ @@ -5773,7 +5674,7 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5787,7 +5688,7 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends OperationStatus deleteCompositeEntityRole(UUID appId, String versionId, UUID cEntityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5801,7 +5702,7 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5815,7 +5716,7 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends EntityRole getPatternAnyEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5828,7 +5729,7 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5840,11 +5741,10 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updatePatternAnyEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePatternAnyEntityRoleOptionalParameter updatePatternAnyEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5854,11 +5754,10 @@ interface ModelsUpdateCompositeEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updatePatternAnyEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePatternAnyEntityRoleOptionalParameter updatePatternAnyEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @return the first stage of the updatePatternAnyEntityRole call */ @@ -5959,7 +5858,7 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5973,7 +5872,7 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends OperationStatus deletePatternAnyEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5987,7 +5886,7 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6001,7 +5900,7 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends EntityRole getHierarchicalEntityRole(UUID appId, String versionId, UUID hEntityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6014,7 +5913,7 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6026,11 +5925,10 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateHierarchicalEntityRole(UUID appId, String versionId, UUID hEntityId, UUID roleId, UpdateHierarchicalEntityRoleOptionalParameter updateHierarchicalEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6040,11 +5938,10 @@ interface ModelsUpdatePatternAnyEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateHierarchicalEntityRoleAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId, UpdateHierarchicalEntityRoleOptionalParameter updateHierarchicalEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @return the first stage of the updateHierarchicalEntityRole call */ @@ -6145,7 +6042,7 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6159,7 +6056,7 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends OperationStatus deleteHierarchicalEntityRole(UUID appId, String versionId, UUID hEntityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6173,7 +6070,7 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6187,7 +6084,7 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends EntityRole getCustomEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6200,7 +6097,7 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6212,11 +6109,10 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateCustomPrebuiltEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateCustomPrebuiltEntityRoleOptionalParameter updateCustomPrebuiltEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6226,11 +6122,10 @@ interface ModelsUpdateHierarchicalEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateCustomPrebuiltEntityRoleAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateCustomPrebuiltEntityRoleOptionalParameter updateCustomPrebuiltEntityRoleOptionalParameter); /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @return the first stage of the updateCustomPrebuiltEntityRole call */ @@ -6331,7 +6226,7 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6345,7 +6240,7 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends OperationStatus deleteCustomEntityRole(UUID appId, String versionId, UUID entityId, UUID roleId); /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6359,7 +6254,7 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6373,7 +6268,7 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends ExplicitListItem getExplicitListItem(UUID appId, String versionId, UUID entityId, long itemId); /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6386,7 +6281,7 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6398,11 +6293,10 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus updateExplicitListItem(UUID appId, String versionId, UUID entityId, long itemId, UpdateExplicitListItemOptionalParameter updateExplicitListItemOptionalParameter); /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6412,11 +6306,10 @@ interface ModelsUpdateCustomPrebuiltEntityRoleDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateExplicitListItemAsync(UUID appId, String versionId, UUID entityId, long itemId, UpdateExplicitListItemOptionalParameter updateExplicitListItemOptionalParameter); /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @return the first stage of the updateExplicitListItem call */ @@ -6517,7 +6410,8 @@ interface ModelsUpdateExplicitListItemDefinition extends /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. @@ -6531,7 +6425,8 @@ interface ModelsUpdateExplicitListItemDefinition extends OperationStatus deleteExplicitListItem(UUID appId, String versionId, UUID entityId, long itemId); /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the + * application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java index da99df1243ac..0ce9d360291c 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java @@ -8,13 +8,14 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetPatternsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetIntentPatternsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListPatternsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentPatternsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternRuleCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternRuleInfo; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternRuleUpdateObject; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -26,7 +27,7 @@ public interface Patterns { /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -39,7 +40,7 @@ public interface Patterns { PatternRuleInfo addPattern(UUID appId, String versionId, PatternRuleCreateObject pattern); /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -51,42 +52,40 @@ public interface Patterns { /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<PatternRuleInfo> object if successful. */ - @Deprecated - List getPatterns(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter); + List listPatterns(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter); /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - @Deprecated - Observable> getPatternsAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter); + Observable> listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter); /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * - * @return the first stage of the getPatterns call + * @return the first stage of the listPatterns call */ - PatternsGetPatternsDefinitionStages.WithAppId getPatterns(); + PatternsListPatternsDefinitionStages.WithAppId listPatterns(); /** - * Grouping of getPatterns definition stages. + * Grouping of listPatterns definition stages. */ - interface PatternsGetPatternsDefinitionStages { + interface PatternsListPatternsDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -107,7 +106,7 @@ interface WithVersionId { * * @return next definition stage */ - PatternsGetPatternsDefinitionStages.WithExecute withVersionId(String versionId); + PatternsListPatternsDefinitionStages.WithExecute withVersionId(String versionId); } /** @@ -119,21 +118,21 @@ interface WithAllOptions { * * @return next definition stage */ - PatternsGetPatternsDefinitionStages.WithExecute withSkip(Integer skip); + PatternsListPatternsDefinitionStages.WithExecute withSkip(Integer skip); /** * The number of entries to return. Maximum page size is 500. Default is 100. * * @return next definition stage */ - PatternsGetPatternsDefinitionStages.WithExecute withTake(Integer take); + PatternsListPatternsDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends PatternsGetPatternsDefinitionStages.WithAllOptions { + interface WithExecute extends PatternsListPatternsDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -151,17 +150,17 @@ interface WithExecute extends PatternsGetPatternsDefinitionStages.WithAllOptions } /** - * The entirety of getPatterns definition. + * The entirety of listPatterns definition. */ - interface PatternsGetPatternsDefinition extends - PatternsGetPatternsDefinitionStages.WithAppId, - PatternsGetPatternsDefinitionStages.WithVersionId, - PatternsGetPatternsDefinitionStages.WithExecute { + interface PatternsListPatternsDefinition extends + PatternsListPatternsDefinitionStages.WithAppId, + PatternsListPatternsDefinitionStages.WithVersionId, + PatternsListPatternsDefinitionStages.WithExecute { } /** - * Updates patterns. + * Updates patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -174,7 +173,7 @@ interface PatternsGetPatternsDefinition extends List updatePatterns(UUID appId, String versionId, List patterns); /** - * Updates patterns. + * Updates patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -187,7 +186,7 @@ interface PatternsGetPatternsDefinition extends /** - * Adds a batch of patterns to the specified application. + * Adds a batch of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -200,7 +199,7 @@ interface PatternsGetPatternsDefinition extends List batchAddPatterns(UUID appId, String versionId, List patterns); /** - * Adds a batch of patterns to the specified application. + * Adds a batch of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -213,7 +212,7 @@ interface PatternsGetPatternsDefinition extends /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -226,7 +225,7 @@ interface PatternsGetPatternsDefinition extends OperationStatus deletePatterns(UUID appId, String versionId, List patternIds); /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -239,7 +238,7 @@ interface PatternsGetPatternsDefinition extends /** - * Updates a pattern. + * Updates a pattern in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -253,7 +252,7 @@ interface PatternsGetPatternsDefinition extends PatternRuleInfo updatePattern(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern); /** - * Updates a pattern. + * Updates a pattern in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -267,7 +266,7 @@ interface PatternsGetPatternsDefinition extends /** - * Deletes the pattern with the specified ID. + * Deletes the pattern with the specified ID from a version of the application.. * * @param appId The application ID. * @param versionId The version ID. @@ -280,7 +279,7 @@ interface PatternsGetPatternsDefinition extends OperationStatus deletePattern(UUID appId, String versionId, UUID patternId); /** - * Deletes the pattern with the specified ID. + * Deletes the pattern with the specified ID from a version of the application.. * * @param appId The application ID. * @param versionId The version ID. @@ -292,44 +291,42 @@ interface PatternsGetPatternsDefinition extends /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<PatternRuleInfo> object if successful. */ - @Deprecated - List getIntentPatterns(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter); + List listIntentPatterns(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter); /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - @Deprecated - Observable> getIntentPatternsAsync(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter); + Observable> listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter); /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * - * @return the first stage of the getIntentPatterns call + * @return the first stage of the listIntentPatterns call */ - PatternsGetIntentPatternsDefinitionStages.WithAppId getIntentPatterns(); + PatternsListIntentPatternsDefinitionStages.WithAppId listIntentPatterns(); /** - * Grouping of getIntentPatterns definition stages. + * Grouping of listIntentPatterns definition stages. */ - interface PatternsGetIntentPatternsDefinitionStages { + interface PatternsListIntentPatternsDefinitionStages { /** * The stage of the definition to be specify appId. */ @@ -361,7 +358,7 @@ interface WithIntentId { * * @return next definition stage */ - PatternsGetIntentPatternsDefinitionStages.WithExecute withIntentId(UUID intentId); + PatternsListIntentPatternsDefinitionStages.WithExecute withIntentId(UUID intentId); } /** @@ -373,21 +370,21 @@ interface WithAllOptions { * * @return next definition stage */ - PatternsGetIntentPatternsDefinitionStages.WithExecute withSkip(Integer skip); + PatternsListIntentPatternsDefinitionStages.WithExecute withSkip(Integer skip); /** * The number of entries to return. Maximum page size is 500. Default is 100. * * @return next definition stage */ - PatternsGetIntentPatternsDefinitionStages.WithExecute withTake(Integer take); + PatternsListIntentPatternsDefinitionStages.WithExecute withTake(Integer take); } /** * The last stage of the definition which will make the operation call. */ - interface WithExecute extends PatternsGetIntentPatternsDefinitionStages.WithAllOptions { + interface WithExecute extends PatternsListIntentPatternsDefinitionStages.WithAllOptions { /** * Execute the request. * @@ -405,13 +402,13 @@ interface WithExecute extends PatternsGetIntentPatternsDefinitionStages.WithAllO } /** - * The entirety of getIntentPatterns definition. + * The entirety of listIntentPatterns definition. */ - interface PatternsGetIntentPatternsDefinition extends - PatternsGetIntentPatternsDefinitionStages.WithAppId, - PatternsGetIntentPatternsDefinitionStages.WithVersionId, - PatternsGetIntentPatternsDefinitionStages.WithIntentId, - PatternsGetIntentPatternsDefinitionStages.WithExecute { + interface PatternsListIntentPatternsDefinition extends + PatternsListIntentPatternsDefinitionStages.WithAppId, + PatternsListIntentPatternsDefinitionStages.WithVersionId, + PatternsListIntentPatternsDefinitionStages.WithIntentId, + PatternsListIntentPatternsDefinitionStages.WithExecute { } } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java index 1dacbabbbe7d..66afaab66a66 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java @@ -14,6 +14,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UserAccessList; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -56,7 +57,6 @@ public interface Permissions { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus add(UUID appId, AddPermissionsOptionalParameter addOptionalParameter); /** @@ -68,7 +68,6 @@ public interface Permissions { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable addAsync(UUID appId, AddPermissionsOptionalParameter addOptionalParameter); /** @@ -147,7 +146,6 @@ interface PermissionsAddDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus delete(UUID appId, DeletePermissionsOptionalParameter deleteOptionalParameter); /** @@ -159,7 +157,6 @@ interface PermissionsAddDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable deleteAsync(UUID appId, DeletePermissionsOptionalParameter deleteOptionalParameter); /** @@ -228,8 +225,8 @@ interface PermissionsDeleteDefinition extends } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access - * to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all + * access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API @@ -238,24 +235,22 @@ interface PermissionsDeleteDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus update(UUID appId, UpdatePermissionsOptionalParameter updateOptionalParameter); /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access - * to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all + * access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateAsync(UUID appId, UpdatePermissionsOptionalParameter updateOptionalParameter); /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access - * to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all + * access to other users will be removed. * * @return the first stage of the update call */ diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Settings.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Settings.java new file mode 100644 index 000000000000..3d3fc6b2678b --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Settings.java @@ -0,0 +1,74 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring; + +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AppVersionSettingObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; +import java.io.IOException; +import java.util.List; +import java.util.UUID; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Settings. + */ +public interface Settings { + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AppVersionSettingObject> object if successful. + */ + List list(UUID appId, String versionId); + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AppVersionSettingObject> object + */ + Observable> listAsync(UUID appId, String versionId); + + + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + OperationStatus update(UUID appId, String versionId, List listOfAppVersionSettingObject); + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + Observable updateAsync(UUID appId, String versionId, List listOfAppVersionSettingObject); + + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Trains.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Trains.java index 0cd0e27a0353..439260c4fcec 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Trains.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Trains.java @@ -11,6 +11,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EnqueueTrainingResponse; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelTrainingInfo; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java index 9312c79fb9d1..eb83d995d617 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java @@ -16,6 +16,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LuisApp; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.VersionInfo; +import java.io.IOException; import java.util.List; import java.util.UUID; import rx.Observable; @@ -26,7 +27,7 @@ */ public interface Versions { /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -36,11 +37,10 @@ public interface Versions { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the String object if successful. */ - @Deprecated String clone(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter); /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -48,11 +48,10 @@ public interface Versions { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the String object */ - @Deprecated Observable cloneAsync(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter); /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @return the first stage of the clone call */ @@ -128,7 +127,7 @@ interface VersionsCloneDefinition extends } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API @@ -137,22 +136,20 @@ interface VersionsCloneDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<VersionInfo> object if successful. */ - @Deprecated List list(UUID appId, ListVersionsOptionalParameter listOptionalParameter); /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<VersionInfo> object */ - @Deprecated Observable> listAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter); /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @return the first stage of the list call */ @@ -224,7 +221,8 @@ interface VersionsListDefinition extends /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of + * intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -236,7 +234,8 @@ interface VersionsListDefinition extends VersionInfo get(UUID appId, String versionId); /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of + * intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -257,7 +256,6 @@ interface VersionsListDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - @Deprecated OperationStatus update(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter); /** @@ -269,7 +267,6 @@ interface VersionsListDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - @Deprecated Observable updateAsync(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter); /** @@ -407,7 +404,6 @@ interface VersionsUpdateDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the String object if successful. */ - @Deprecated String importMethod(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter); /** @@ -419,7 +415,6 @@ interface VersionsUpdateDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the String object */ - @Deprecated Observable importMethodAsync(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter); /** @@ -500,7 +495,7 @@ interface VersionsImportMethodDefinition extends /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -513,7 +508,7 @@ interface VersionsImportMethodDefinition extends OperationStatus deleteUnlabelledUtterance(UUID appId, String versionId, String utterance); /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java index 195089e73164..3a50f9cefd9e 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java @@ -10,6 +10,7 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListAppsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ImportMethodAppsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.DeleteAppsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateSettingsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps; @@ -125,7 +126,7 @@ interface AppsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps delete" }) @HTTP(path = "apps/{appId}", method = "DELETE", hasBody = true) - Observable> delete(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> delete(@Path("appId") UUID appId, @Query("force") Boolean force, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps publish" }) @POST("apps/{appId}/publish") @@ -163,12 +164,22 @@ interface AppsService { @GET("apps/customprebuiltdomains/{culture}") Observable> listAvailableCustomPrebuiltDomainsForCulture(@Path("culture") String culture, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps packagePublishedApplicationAsGzip" }) + @GET("package/{appId}/slot/{slotName}/gzip") + @Streaming + Observable> packagePublishedApplicationAsGzip(@Path("appId") UUID appId, @Path("slotName") String slotName, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps packageTrainedApplicationAsGzip" }) + @GET("package/{appId}/versions/{versionId}/gzip") + @Streaming + Observable> packageTrainedApplicationAsGzip(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + } /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is created. + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is "0.1". Note: the culture cannot be changed after the app is created. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -181,7 +192,7 @@ public UUID add(ApplicationCreateObject applicationCreateObject) { /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is created. + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is "0.1". Note: the culture cannot be changed after the app is created. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -193,7 +204,7 @@ public ServiceFuture addAsync(ApplicationCreateObject applicationCreateObj /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is created. + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is "0.1". Note: the culture cannot be changed after the app is created. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -209,7 +220,7 @@ public UUID call(ServiceResponse response) { /** * Creates a new LUIS app. * - * @param applicationCreateObject A model containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is 0.1. Note: the culture cannot be changed after the app is created. + * @param applicationCreateObject An application containing Name, Description (optional), Culture, Usage Scenario (optional), Domain (optional) and initial version ID (optional) of the application. Default value for the version ID is "0.1". Note: the culture cannot be changed after the app is created. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -245,7 +256,7 @@ private ServiceResponse addDelegate(Response response) throw /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation @@ -258,7 +269,7 @@ public List list(ListAppsOptionalParameter listOptional } /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -270,7 +281,7 @@ public ServiceFuture> listAsync(ListAppsOptionalPa } /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param listOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation @@ -286,7 +297,7 @@ public List call(ServiceResponse>> listWithServic } /** - * Lists all of the user applications. + * Lists all of the user's applications. * * @param skip The number of entries to skip. Default value is 0. * @param take The number of entries to return. Maximum page size is 500. Default is 100. @@ -387,7 +398,7 @@ public List call(ServiceResponse importMethodAsync(LuisApp luisApp, ImportMethodAppsOp } /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @param luisApp A LUIS application structure. * @param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API @@ -431,7 +442,7 @@ public UUID call(ServiceResponse response) { } /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @param luisApp A LUIS application structure. * @param importMethodOptionalParameter the object representing the optional parameters to be set before calling this API @@ -452,10 +463,10 @@ public Observable> importMethodWithServiceResponseAsync(Lu } /** - * Imports an application to LUIS, the application's structure should be included in in the request body. + * Imports an application to LUIS, the application's structure is included in the request body. * * @param luisApp A LUIS application structure. - * @param appName The application name to create. If not specified, the application name will be read from the imported object. + * @param appName The application name to create. If not specified, the application name will be read from the imported object. If the application name already exists, an error is returned. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -749,7 +760,7 @@ private ServiceResponse> listUsageScenariosDelegate(Response listSupportedCultures() { } /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For example,"en-us" represents the U.S. variation of English. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -772,7 +783,7 @@ public ServiceFuture> listSupportedCulturesAsync(final Se } /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For example,"en-us" represents the U.S. variation of English. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<AvailableCulture> object @@ -787,7 +798,7 @@ public List call(ServiceResponse> respo } /** - * Gets the supported application cultures. + * Gets a list of supported cultures. Cultures are equivalent to the written language and locale. For example,"en-us" represents the U.S. variation of English. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<AvailableCulture> object @@ -819,7 +830,7 @@ private ServiceResponse> listSupportedCulturesDelegate(Re } /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -832,7 +843,7 @@ public InputStream downloadQueryLogs(UUID appId) { } /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -844,7 +855,7 @@ public ServiceFuture downloadQueryLogsAsync(UUID appId, final Servi } /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -860,7 +871,7 @@ public InputStream call(ServiceResponse response) { } /** - * Gets the query logs of the past month for the application. + * Gets the logs of the past month's endpoint queries for the application. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1057,40 +1068,44 @@ private ServiceResponse updateDelegate(Response r .build(response); } + /** * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - public OperationStatus delete(UUID appId) { - return deleteWithServiceResponseAsync(appId).toBlocking().single().body(); + public OperationStatus delete(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter) { + return deleteWithServiceResponseAsync(appId, deleteOptionalParameter).toBlocking().single().body(); } /** * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteAsync(UUID appId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(appId), serviceCallback); + public ServiceFuture deleteAsync(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(appId, deleteOptionalParameter), serviceCallback); } /** * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable deleteAsync(UUID appId) { - return deleteWithServiceResponseAsync(appId).map(new Func1, OperationStatus>() { + public Observable deleteAsync(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter) { + return deleteWithServiceResponseAsync(appId, deleteOptionalParameter).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { return response.body(); @@ -1102,10 +1117,31 @@ public OperationStatus call(ServiceResponse response) { * Deletes an application. * * @param appId The application ID. + * @param deleteOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> deleteWithServiceResponseAsync(UUID appId, DeleteAppsOptionalParameter deleteOptionalParameter) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + final Boolean force = deleteOptionalParameter != null ? deleteOptionalParameter.force() : null; + + return deleteWithServiceResponseAsync(appId, force); + } + + /** + * Deletes an application. + * + * @param appId The application ID. + * @param force A flag to indicate whether to force an operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> deleteWithServiceResponseAsync(UUID appId) { + public Observable> deleteWithServiceResponseAsync(UUID appId, Boolean force) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -1113,7 +1149,7 @@ public Observable> deleteWithServiceResponseAsy throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.delete(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.delete(appId, force, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1134,6 +1170,55 @@ private ServiceResponse deleteDelegate(Response r .build(response); } + @Override + public AppsDeleteParameters delete() { + return new AppsDeleteParameters(this); + } + + /** + * Internal class implementing AppsDeleteDefinition. + */ + class AppsDeleteParameters implements AppsDeleteDefinition { + private AppsImpl parent; + private UUID appId; + private Boolean force; + + /** + * Constructor. + * @param parent the parent object. + */ + AppsDeleteParameters(AppsImpl parent) { + this.parent = parent; + } + + @Override + public AppsDeleteParameters withAppId(UUID appId) { + this.appId = appId; + return this; + } + + @Override + public AppsDeleteParameters withForce(Boolean force) { + this.force = force; + return this; + } + + @Override + public OperationStatus execute() { + return deleteWithServiceResponseAsync(appId, force).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return deleteWithServiceResponseAsync(appId, force).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + } + /** * Publishes a specific version of the application. * @@ -1215,12 +1300,13 @@ public Observable> call(Respons private ServiceResponse publishDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(201, new TypeToken() { }.getType()) + .register(207, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) .build(response); } /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1233,7 +1319,7 @@ public ApplicationSettings getSettings(UUID appId) { } /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -1245,7 +1331,7 @@ public ServiceFuture getSettingsAsync(UUID appId, final Ser } /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1261,7 +1347,7 @@ public ApplicationSettings call(ServiceResponse response) { } /** - * Get the application settings. + * Get the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1298,7 +1384,7 @@ private ServiceResponse getSettingsDelegate(Response updateSettingsAsync(UUID appId, UpdateSett } /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param updateSettingsOptionalParameter the object representing the optional parameters to be set before calling this API @@ -1342,7 +1428,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param updateSettingsOptionalParameter the object representing the optional parameters to be set before calling this API @@ -1356,20 +1442,20 @@ public Observable> updateSettingsWithServiceRes if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } - final boolean publicParameter = updateSettingsOptionalParameter != null ? updateSettingsOptionalParameter.publicParameter() : false; + final boolean isPublic = updateSettingsOptionalParameter != null ? updateSettingsOptionalParameter.isPublic() : false; - return updateSettingsWithServiceResponseAsync(appId, publicParameter); + return updateSettingsWithServiceResponseAsync(appId, isPublic); } /** - * Updates the application settings. + * Updates the application settings including 'UseAllTrainingData'. * * @param appId The application ID. - * @param publicParameter Setting your application as public allows other people to use your application's endpoint using their own keys. + * @param isPublic Setting your application as public allows other people to use your application's endpoint using their own keys. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> updateSettingsWithServiceResponseAsync(UUID appId, boolean publicParameter) { + public Observable> updateSettingsWithServiceResponseAsync(UUID appId, boolean isPublic) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -1377,7 +1463,7 @@ public Observable> updateSettingsWithServiceRes throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } ApplicationSettingUpdateObject applicationSettingUpdateObject = new ApplicationSettingUpdateObject(); - applicationSettingUpdateObject.withPublicProperty(publicParameter); + applicationSettingUpdateObject.withIsPublic(isPublic); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.updateSettings(appId, this.client.acceptLanguage(), applicationSettingUpdateObject, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -1411,7 +1497,7 @@ public AppsUpdateSettingsParameters updateSettings() { class AppsUpdateSettingsParameters implements AppsUpdateSettingsDefinition { private AppsImpl parent; private UUID appId; - private boolean publicParameter; + private boolean isPublic; /** * Constructor. @@ -1428,19 +1514,19 @@ public AppsUpdateSettingsParameters withAppId(UUID appId) { } @Override - public AppsUpdateSettingsParameters withPublicParameter(boolean publicParameter) { - this.publicParameter = publicParameter; + public AppsUpdateSettingsParameters withIsPublic(boolean isPublic) { + this.isPublic = isPublic; return this; } @Override public OperationStatus execute() { - return updateSettingsWithServiceResponseAsync(appId, publicParameter).toBlocking().single().body(); + return updateSettingsWithServiceResponseAsync(appId, isPublic).toBlocking().single().body(); } @Override public Observable executeAsync() { - return updateSettingsWithServiceResponseAsync(appId, publicParameter).map(new Func1, OperationStatus>() { + return updateSettingsWithServiceResponseAsync(appId, isPublic).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { return response.body(); @@ -1450,7 +1536,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1463,7 +1549,7 @@ public PublishSettings getPublishSettings(UUID appId) { } /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -1475,7 +1561,7 @@ public ServiceFuture getPublishSettingsAsync(UUID appId, final } /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1491,7 +1577,7 @@ public PublishSettings call(ServiceResponse response) { } /** - * Get the application publish settings. + * Get the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1527,7 +1613,7 @@ private ServiceResponse getPublishSettingsDelegate(Response updatePublishSettingsAsync(UUID appId, Pub } /** - * Updates the application publish settings. + * Updates the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. @@ -1571,7 +1657,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the application publish settings. + * Updates the application publish settings including 'UseAllTrainingData'. * * @param appId The application ID. * @param publishSettingUpdateObject An object containing the new publish application settings. @@ -1759,7 +1845,7 @@ private ServiceResponse> listAvailableCustomPrebuiltDomains } /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1772,7 +1858,7 @@ public UUID addCustomPrebuiltDomain(PrebuiltDomainCreateObject prebuiltDomainCre } /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -1784,7 +1870,7 @@ public ServiceFuture addCustomPrebuiltDomainAsync(PrebuiltDomainCreateObje } /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1800,7 +1886,7 @@ public UUID call(ServiceResponse response) { } /** - * Adds a prebuilt domain along with its models as a new application. + * Adds a prebuilt domain along with its intent and entity models as a new application. * * @param prebuiltDomainCreateObject A prebuilt domain create object containing the name and culture of the domain. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1837,7 +1923,7 @@ private ServiceResponse addCustomPrebuiltDomainDelegate(Response listAvailableCustomPrebuiltDomainsForCulture(String } /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. * * @param culture Culture. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. @@ -1862,7 +1948,7 @@ public ServiceFuture> listAvailableCustomPrebuiltDomainsFor } /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. * * @param culture Culture. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1878,7 +1964,7 @@ public List call(ServiceResponse> response) } /** - * Gets all the available custom prebuilt domains for a specific culture. + * Gets all the available prebuilt domains for a specific culture. * * @param culture Culture. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -1913,4 +1999,180 @@ private ServiceResponse> listAvailableCustomPrebuiltDomains .build(response); } + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. + */ + public InputStream packagePublishedApplicationAsGzip(UUID appId, String slotName) { + return packagePublishedApplicationAsGzipWithServiceResponseAsync(appId, slotName).toBlocking().single().body(); + } + + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture packagePublishedApplicationAsGzipAsync(UUID appId, String slotName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(packagePublishedApplicationAsGzipWithServiceResponseAsync(appId, slotName), serviceCallback); + } + + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable packagePublishedApplicationAsGzipAsync(UUID appId, String slotName) { + return packagePublishedApplicationAsGzipWithServiceResponseAsync(appId, slotName).map(new Func1, InputStream>() { + @Override + public InputStream call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * package - Gets published LUIS application package in binary stream GZip format. + * Packages a published LUIS application as a GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param slotName The publishing slot name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable> packagePublishedApplicationAsGzipWithServiceResponseAsync(UUID appId, String slotName) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (slotName == null) { + throw new IllegalArgumentException("Parameter slotName is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.packagePublishedApplicationAsGzip(appId, slotName, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = packagePublishedApplicationAsGzipDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse packagePublishedApplicationAsGzipDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the InputStream object if successful. + */ + public InputStream packageTrainedApplicationAsGzip(UUID appId, String versionId) { + return packageTrainedApplicationAsGzipWithServiceResponseAsync(appId, versionId).toBlocking().single().body(); + } + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture packageTrainedApplicationAsGzipAsync(UUID appId, String versionId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(packageTrainedApplicationAsGzipWithServiceResponseAsync(appId, versionId), serviceCallback); + } + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable packageTrainedApplicationAsGzipAsync(UUID appId, String versionId) { + return packageTrainedApplicationAsGzipWithServiceResponseAsync(appId, versionId).map(new Func1, InputStream>() { + @Override + public InputStream call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * package - Gets trained LUIS application package in binary stream GZip format. + * Packages trained LUIS application as GZip file to be used in the LUIS container. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the InputStream object + */ + public Observable> packageTrainedApplicationAsGzipWithServiceResponseAsync(UUID appId, String versionId) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.packageTrainedApplicationAsGzip(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = packageTrainedApplicationAsGzipDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse packageTrainedApplicationAsGzipDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AzureAccountsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AzureAccountsImpl.java new file mode 100644 index 000000000000..47faa2b5cb99 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AzureAccountsImpl.java @@ -0,0 +1,552 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation; + +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AssignToAppOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.RemoveFromAppOptionalParameter; +import retrofit2.Retrofit; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts; +import com.google.common.base.Joiner; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureAccountInfoObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.UUID; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.HTTP; +import retrofit2.http.Path; +import retrofit2.http.POST; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in AzureAccounts. + */ +public class AzureAccountsImpl implements AzureAccounts { + /** The Retrofit service to perform REST calls. */ + private AzureAccountsService service; + /** The service client containing this operation class. */ + private LUISAuthoringClientImpl client; + + /** + * Initializes an instance of AzureAccountsImpl. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public AzureAccountsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { + this.service = retrofit.create(AzureAccountsService.class); + this.client = client; + } + + /** + * The interface defining all the services for AzureAccounts to be + * used by Retrofit to perform actually REST calls. + */ + interface AzureAccountsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts assignToApp" }) + @POST("apps/{appId}/azureaccounts") + Observable> assignToApp(@Path("appId") UUID appId, @Body AzureAccountInfoObject azureAccountInfoObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts getAssigned" }) + @GET("apps/{appId}/azureaccounts") + Observable> getAssigned(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts removeFromApp" }) + @HTTP(path = "apps/{appId}/azureaccounts", method = "DELETE", hasBody = true) + Observable> removeFromApp(@Path("appId") UUID appId, @Body AzureAccountInfoObject azureAccountInfoObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts listUserLUISAccounts" }) + @GET("azureaccounts") + Observable> listUserLUISAccounts(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + } + + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus assignToApp(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter) { + return assignToAppWithServiceResponseAsync(appId, assignToAppOptionalParameter).toBlocking().single().body(); + } + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(assignToAppWithServiceResponseAsync(appId, assignToAppOptionalParameter), serviceCallback); + } + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable assignToAppAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter) { + return assignToAppWithServiceResponseAsync(appId, assignToAppOptionalParameter).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param assignToAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> assignToAppWithServiceResponseAsync(UUID appId, AssignToAppOptionalParameter assignToAppOptionalParameter) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + final AzureAccountInfoObject azureAccountInfoObject = assignToAppOptionalParameter != null ? assignToAppOptionalParameter.azureAccountInfoObject() : null; + + return assignToAppWithServiceResponseAsync(appId, azureAccountInfoObject); + } + + /** + * apps - Assign a LUIS Azure account to an application. + * Assigns an Azure account to the application. + * + * @param appId The application ID. + * @param azureAccountInfoObject The Azure account information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> assignToAppWithServiceResponseAsync(UUID appId, AzureAccountInfoObject azureAccountInfoObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + Validator.validate(azureAccountInfoObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.assignToApp(appId, azureAccountInfoObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = assignToAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse assignToAppDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + @Override + public AzureAccountsAssignToAppParameters assignToApp() { + return new AzureAccountsAssignToAppParameters(this); + } + + /** + * Internal class implementing AzureAccountsAssignToAppDefinition. + */ + class AzureAccountsAssignToAppParameters implements AzureAccountsAssignToAppDefinition { + private AzureAccountsImpl parent; + private UUID appId; + private AzureAccountInfoObject azureAccountInfoObject; + + /** + * Constructor. + * @param parent the parent object. + */ + AzureAccountsAssignToAppParameters(AzureAccountsImpl parent) { + this.parent = parent; + } + + @Override + public AzureAccountsAssignToAppParameters withAppId(UUID appId) { + this.appId = appId; + return this; + } + + @Override + public AzureAccountsAssignToAppParameters withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject) { + this.azureAccountInfoObject = azureAccountInfoObject; + return this; + } + + @Override + public OperationStatus execute() { + return assignToAppWithServiceResponseAsync(appId, azureAccountInfoObject).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return assignToAppWithServiceResponseAsync(appId, azureAccountInfoObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AzureAccountInfoObject> object if successful. + */ + public List getAssigned(UUID appId) { + return getAssignedWithServiceResponseAsync(appId).toBlocking().single().body(); + } + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getAssignedAsync(UUID appId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getAssignedWithServiceResponseAsync(appId), serviceCallback); + } + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + public Observable> getAssignedAsync(UUID appId) { + return getAssignedWithServiceResponseAsync(appId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * apps - Get LUIS Azure accounts assigned to the application. + * Gets the LUIS Azure accounts assigned to the application for the user using his ARM token. + * + * @param appId The application ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + public Observable>> getAssignedWithServiceResponseAsync(UUID appId) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.getAssigned(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getAssignedDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getAssignedDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus removeFromApp(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter) { + return removeFromAppWithServiceResponseAsync(appId, removeFromAppOptionalParameter).toBlocking().single().body(); + } + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(removeFromAppWithServiceResponseAsync(appId, removeFromAppOptionalParameter), serviceCallback); + } + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable removeFromAppAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter) { + return removeFromAppWithServiceResponseAsync(appId, removeFromAppOptionalParameter).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param removeFromAppOptionalParameter the object representing the optional parameters to be set before calling this API + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> removeFromAppWithServiceResponseAsync(UUID appId, RemoveFromAppOptionalParameter removeFromAppOptionalParameter) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + final AzureAccountInfoObject azureAccountInfoObject = removeFromAppOptionalParameter != null ? removeFromAppOptionalParameter.azureAccountInfoObject() : null; + + return removeFromAppWithServiceResponseAsync(appId, azureAccountInfoObject); + } + + /** + * apps - Removes an assigned LUIS Azure account from an application. + * Removes assigned Azure account from the application. + * + * @param appId The application ID. + * @param azureAccountInfoObject The Azure account information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> removeFromAppWithServiceResponseAsync(UUID appId, AzureAccountInfoObject azureAccountInfoObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + Validator.validate(azureAccountInfoObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.removeFromApp(appId, azureAccountInfoObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = removeFromAppDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse removeFromAppDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + @Override + public AzureAccountsRemoveFromAppParameters removeFromApp() { + return new AzureAccountsRemoveFromAppParameters(this); + } + + /** + * Internal class implementing AzureAccountsRemoveFromAppDefinition. + */ + class AzureAccountsRemoveFromAppParameters implements AzureAccountsRemoveFromAppDefinition { + private AzureAccountsImpl parent; + private UUID appId; + private AzureAccountInfoObject azureAccountInfoObject; + + /** + * Constructor. + * @param parent the parent object. + */ + AzureAccountsRemoveFromAppParameters(AzureAccountsImpl parent) { + this.parent = parent; + } + + @Override + public AzureAccountsRemoveFromAppParameters withAppId(UUID appId) { + this.appId = appId; + return this; + } + + @Override + public AzureAccountsRemoveFromAppParameters withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject) { + this.azureAccountInfoObject = azureAccountInfoObject; + return this; + } + + @Override + public OperationStatus execute() { + return removeFromAppWithServiceResponseAsync(appId, azureAccountInfoObject).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return removeFromAppWithServiceResponseAsync(appId, azureAccountInfoObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + } + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AzureAccountInfoObject> object if successful. + */ + public List listUserLUISAccounts() { + return listUserLUISAccountsWithServiceResponseAsync().toBlocking().single().body(); + } + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listUserLUISAccountsAsync(final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listUserLUISAccountsWithServiceResponseAsync(), serviceCallback); + } + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + public Observable> listUserLUISAccountsAsync() { + return listUserLUISAccountsWithServiceResponseAsync().map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * user - Get LUIS Azure accounts. + * Gets the LUIS Azure accounts for the user using his ARM token. + * + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AzureAccountInfoObject> object + */ + public Observable>> listUserLUISAccountsWithServiceResponseAsync() { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.listUserLUISAccounts(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = listUserLUISAccountsDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listUserLUISAccountsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java index c92923209531..7d8f8e02599f 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java @@ -84,11 +84,11 @@ interface ExamplesService { } /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -99,11 +99,11 @@ public LabelExampleResponse add(UUID appId, String versionId, ExampleLabelObject } /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -113,11 +113,11 @@ public ServiceFuture addAsync(UUID appId, String versionId } /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LabelExampleResponse object */ @@ -131,11 +131,11 @@ public LabelExampleResponse call(ServiceResponse response) } /** - * Adds a labeled example to the application. + * Adds a labeled example utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObject An example label with the expected intent and entities. + * @param exampleLabelObject A labeled example utterance with the expected intent and entities. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the LabelExampleResponse object */ @@ -176,11 +176,11 @@ private ServiceResponse addDelegate(Response } /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -191,11 +191,11 @@ public List batch(UUID appId, String versionId, List> batchAsync(UUID appId, String vers } /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<BatchLabelExample> object */ @@ -223,11 +223,11 @@ public List call(ServiceResponse> res } /** - * Adds a batch of labeled examples to the application. + * Adds a batch of labeled example utterances to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param exampleLabelObjectArray Array of examples. + * @param exampleLabelObjectArray Array of example utterances. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<BatchLabelExample> object */ @@ -270,7 +270,7 @@ private ServiceResponse> batchDelegate(Response list(UUID appId, String versionId, ListExamplesOpt } /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -299,7 +299,7 @@ public ServiceFuture> listAsync(UUID appId, String versio } /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -317,7 +317,7 @@ public List call(ServiceResponse> respo } /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -342,7 +342,7 @@ public Observable>> listWithServiceRespon } /** - * Returns examples to be reviewed. + * Returns example utterances to be reviewed from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -447,7 +447,7 @@ public List call(ServiceResponse> respo } /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -462,7 +462,7 @@ public OperationStatus delete(UUID appId, String versionId, int exampleId) { } /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -476,7 +476,7 @@ public ServiceFuture deleteAsync(UUID appId, String versionId, } /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -494,7 +494,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes the labeled example with the specified ID. + * Deletes the labeled example utterances with the specified ID from a version of the application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java index cfb7f11b0d4e..67153edf874c 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java @@ -17,6 +17,7 @@ import com.google.common.reflect.TypeToken; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.FeaturesResponseObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelFeatureInformation; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PhraselistCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PhraseListFeatureInfo; @@ -92,10 +93,18 @@ interface FeaturesService { @HTTP(path = "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}", method = "DELETE", hasBody = true) Observable> deletePhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("phraselistId") int phraselistId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Features addIntentFeature" }) + @POST("apps/{appId}/versions/{versionId}/intents/{intentId}/features") + Observable> addIntentFeature(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Body ModelFeatureInformation featureRelationCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Features addEntityFeature" }) + @POST("apps/{appId}/versions/{versionId}/entities/{entityId}/features") + Observable> addEntityFeature(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body ModelFeatureInformation featureRelationCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + } /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -110,7 +119,7 @@ public int addPhraseList(UUID appId, String versionId, PhraselistCreateObject ph } /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -124,7 +133,7 @@ public ServiceFuture addPhraseListAsync(UUID appId, String versionId, P } /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -142,7 +151,7 @@ public Integer call(ServiceResponse response) { } /** - * Creates a new phraselist feature. + * Creates a new phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -188,7 +197,7 @@ private ServiceResponse addPhraseListDelegate(Response re /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -203,7 +212,7 @@ public List listPhraseLists(UUID appId, String versionId, } /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -217,7 +226,7 @@ public ServiceFuture> listPhraseListsAsync(UUID appI } /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -235,7 +244,7 @@ public List call(ServiceResponse>> listPhraseListsW } /** - * Gets all the phraselist features. + * Gets all the phraselist features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -366,7 +375,7 @@ public List call(ServiceResponse listAsync(UUID appId, String versio } /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -413,7 +422,7 @@ public FeaturesResponseObject call(ServiceResponse respo } /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -438,7 +447,7 @@ public Observable> listWithServiceRespon } /** - * Gets all the extraction features for the specified application version. + * Gets all the extraction phraselist and pattern features in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -543,7 +552,7 @@ public FeaturesResponseObject call(ServiceResponse respo } /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -558,7 +567,7 @@ public PhraseListFeatureInfo getPhraseList(UUID appId, String versionId, int phr } /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -572,7 +581,7 @@ public ServiceFuture getPhraseListAsync(UUID appId, Strin } /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -590,7 +599,7 @@ public PhraseListFeatureInfo call(ServiceResponse respons } /** - * Gets phraselist feature info. + * Gets phraselist feature info in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -632,7 +641,7 @@ private ServiceResponse getPhraseListDelegate(Response updatePhraseListAsync(UUID appId, String v } /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -682,7 +691,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -707,7 +716,7 @@ public Observable> updatePhraseListWithServiceR } /** - * Updates the phrases, the state and the name of the phraselist feature. + * Updates the phrases, the state and the name of the phraselist feature in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -813,7 +822,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -828,7 +837,7 @@ public OperationStatus deletePhraseList(UUID appId, String versionId, int phrase } /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -842,7 +851,7 @@ public ServiceFuture deletePhraseListAsync(UUID appId, String v } /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -860,7 +869,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a phraselist feature. + * Deletes a phraselist feature from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -900,4 +909,202 @@ private ServiceResponse deletePhraseListDelegate(Response addIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationCreateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(addIntentFeatureWithServiceResponseAsync(appId, versionId, intentId, featureRelationCreateObject), serviceCallback); + } + + /** + * Adds a new feature relation to be used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable addIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationCreateObject) { + return addIntentFeatureWithServiceResponseAsync(appId, versionId, intentId, featureRelationCreateObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Adds a new feature relation to be used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> addIntentFeatureWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationCreateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (intentId == null) { + throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); + } + if (featureRelationCreateObject == null) { + throw new IllegalArgumentException("Parameter featureRelationCreateObject is required and cannot be null."); + } + Validator.validate(featureRelationCreateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.addIntentFeature(appId, versionId, intentId, featureRelationCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = addIntentFeatureDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse addIntentFeatureDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus addEntityFeature(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject) { + return addEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationCreateObject).toBlocking().single().body(); + } + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture addEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(addEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationCreateObject), serviceCallback); + } + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable addEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject) { + return addEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationCreateObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Adds a new feature relation to be used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationCreateObject A Feature relation information object. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> addEntityFeatureWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationCreateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (entityId == null) { + throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); + } + if (featureRelationCreateObject == null) { + throw new IllegalArgumentException("Parameter featureRelationCreateObject is required and cannot be null."); + } + Validator.validate(featureRelationCreateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.addEntityFeature(appId, versionId, entityId, featureRelationCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = addEntityFeatureDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse addEntityFeatureDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java index accd92be520a..9726d57b18fd 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java @@ -11,12 +11,14 @@ import com.microsoft.azure.AzureClient; import com.microsoft.azure.AzureServiceClient; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.AzureAccounts; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Features; import com.microsoft.azure.cognitiveservices.language.luis.authoring.LUISAuthoringClient; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Models; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.Settings; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Trains; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions; import com.microsoft.rest.credentials.ServiceClientCredentials; @@ -233,13 +235,39 @@ public Patterns patterns() { return this.patterns; } + /** + * The Settings object to access its operations. + */ + private Settings settings; + + /** + * Gets the Settings object to access its operations. + * @return the Settings object. + */ + public Settings settings() { + return this.settings; + } + + /** + * The AzureAccounts object to access its operations. + */ + private AzureAccounts azureAccounts; + + /** + * Gets the AzureAccounts object to access its operations. + * @return the AzureAccounts object. + */ + public AzureAccounts azureAccounts() { + return this.azureAccounts; + } + /** * Initializes an instance of LUISAuthoringClient client. * * @param credentials the management credentials for Azure */ public LUISAuthoringClientImpl(ServiceClientCredentials credentials) { - this("https://{endpoint}/luis/api/v2.0", credentials); + this("https://{Endpoint}/luis/authoring/v3.0-preview", credentials); } /** @@ -275,6 +303,8 @@ protected void initialize() { this.trains = new TrainsImpl(restClient().retrofit(), this); this.permissions = new PermissionsImpl(restClient().retrofit(), this); this.patterns = new PatternsImpl(restClient().retrofit(), this); + this.settings = new SettingsImpl(restClient().retrofit(), this); + this.azureAccounts = new AzureAccountsImpl(restClient().retrofit(), this); this.azureClient = new AzureClient(this); } @@ -285,6 +315,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "LUISAuthoringClient", "2.0"); + return String.format("%s (%s, %s)", super.userAgent(), "LUISAuthoringClient", "3.0-preview"); } } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java index 5e5798398c5f..37613297872a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java @@ -10,7 +10,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddIntentOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddEntityOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListEntitiesOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListHierarchicalEntitiesOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListCompositeEntitiesOptionalParameter; @@ -20,16 +19,15 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ExamplesMethodOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateIntentOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.DeleteIntentOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateEntityOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateHierarchicalEntityOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatchClosedListOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetIntentSuggestionsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetEntitySuggestionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentSuggestionsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListEntitySuggestionsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddCustomPrebuiltDomainModelsOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateHierarchicalEntityChildOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddHierarchicalEntityChildOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AddCompositeEntityChildOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetRegexEntityInfosOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetPatternAnyEntityInfosOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListRegexEntityInfosOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListPatternAnyEntityInfosOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreateEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreatePrebuiltEntityRoleOptionalParameter; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CreateClosedListEntityRoleOptionalParameter; @@ -52,8 +50,8 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.Models; import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; -import com.microsoft.azure.CloudException; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AvailablePrebuiltEntityModel; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ChildEntityModelCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListModelCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ClosedListModelPatchObject; @@ -64,6 +62,8 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CustomPrebuiltModel; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntitiesSuggestionExample; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityExtractor; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityModelCreateObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityModelUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityRole; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityRoleCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EntityRoleUpdateObject; @@ -72,16 +72,16 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ExplicitListItemCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ExplicitListItemUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalChildEntity; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalChildModelCreateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalChildModelUpdateObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalEntityExtractor; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.HierarchicalEntityModel; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.IntentClassifier; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.IntentsSuggestionExample; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.LabelTextObject; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelCreateObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelFeatureInformation; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelInfoResponse; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ModelUpdateObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.NDepthEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternAnyEntityExtractor; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.PatternAnyModelCreateObject; @@ -152,24 +152,16 @@ interface ModelsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addEntity" }) @POST("apps/{appId}/versions/{versionId}/entities") - Observable> addEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body ModelCreateObject modelCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body EntityModelCreateObject entityModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listEntities" }) @GET("apps/{appId}/versions/{versionId}/entities") Observable> listEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addHierarchicalEntity" }) - @POST("apps/{appId}/versions/{versionId}/hierarchicalentities") - Observable> addHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body HierarchicalEntityModel hierarchicalModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listHierarchicalEntities" }) @GET("apps/{appId}/versions/{versionId}/hierarchicalentities") Observable> listHierarchicalEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addCompositeEntity" }) - @POST("apps/{appId}/versions/{versionId}/compositeentities") - Observable> addCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body CompositeEntityModel compositeModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listCompositeEntities" }) @GET("apps/{appId}/versions/{versionId}/compositeentities") Observable> listCompositeEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @@ -218,21 +210,45 @@ interface ModelsService { @GET("apps/{appId}/versions/{versionId}/entities/{entityId}") Observable> getEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models updateEntity" }) - @PUT("apps/{appId}/versions/{versionId}/entities/{entityId}") - Observable> updateEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body ModelUpdateObject modelUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteEntity" }) @HTTP(path = "apps/{appId}/versions/{versionId}/entities/{entityId}", method = "DELETE", hasBody = true) Observable> deleteEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models updateEntityChild" }) + @PATCH("apps/{appId}/versions/{versionId}/entities/{entityId}") + Observable> updateEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body EntityModelUpdateObject entityModelUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getIntentFeatures" }) + @GET("apps/{appId}/versions/{versionId}/intents/{intentId}/features") + Observable> getIntentFeatures(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models replaceIntentFeatures" }) + @PUT("apps/{appId}/versions/{versionId}/intents/{intentId}/features") + Observable> replaceIntentFeatures(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Body List featureRelationsUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteIntentFeature" }) + @HTTP(path = "apps/{appId}/versions/{versionId}/intents/{intentId}/features", method = "DELETE", hasBody = true) + Observable> deleteIntentFeature(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Body ModelFeatureInformation featureRelationDeleteObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getEntityFeatures" }) + @GET("apps/{appId}/versions/{versionId}/entities/{entityId}/features") + Observable> getEntityFeatures(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models replaceEntityFeatures" }) + @PUT("apps/{appId}/versions/{versionId}/entities/{entityId}/features") + Observable> replaceEntityFeatures(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body List featureRelationsUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteEntityFeature" }) + @HTTP(path = "apps/{appId}/versions/{versionId}/entities/{entityId}/features", method = "DELETE", hasBody = true) + Observable> deleteEntityFeature(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body ModelFeatureInformation featureRelationDeleteObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getHierarchicalEntity" }) @GET("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}") Observable> getHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models updateHierarchicalEntity" }) - @PUT("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}") - Observable> updateHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Body HierarchicalEntityModel hierarchicalModelUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @PATCH("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}") + Observable> updateHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Body ModelUpdateObject modelUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteHierarchicalEntity" }) @HTTP(path = "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}", method = "DELETE", hasBody = true) @@ -276,19 +292,19 @@ interface ModelsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteSubList" }) @HTTP(path = "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}", method = "DELETE", hasBody = true) - Observable> deleteSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Path("subListId") int subListId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Path("subListId") long subListId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models updateSubList" }) @PUT("apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}") - Observable> updateSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Path("subListId") int subListId, @Body WordListBaseUpdateObject wordListBaseUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Path("subListId") long subListId, @Body WordListBaseUpdateObject wordListBaseUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getIntentSuggestions" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listIntentSuggestions" }) @GET("apps/{appId}/versions/{versionId}/intents/{intentId}/suggest") - Observable> getIntentSuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listIntentSuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getEntitySuggestions" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listEntitySuggestions" }) @GET("apps/{appId}/versions/{versionId}/entities/{entityId}/suggest") - Observable> getEntitySuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listEntitySuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addSubList" }) @POST("apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists") @@ -322,22 +338,22 @@ interface ModelsService { @HTTP(path = "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}", method = "DELETE", hasBody = true) Observable> deleteCustomPrebuiltDomain(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("domainName") String domainName, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addEntityChild" }) + @POST("apps/{appId}/versions/{versionId}/entities/{entityId}/children") + Observable> addEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body ChildEntityModelCreateObject childEntityModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getHierarchicalEntityChild" }) @GET("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}") Observable> getHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("hChildId") UUID hChildId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models updateHierarchicalEntityChild" }) - @PUT("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}") + @PATCH("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}") Observable> updateHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("hChildId") UUID hChildId, @Header("accept-language") String acceptLanguage, @Body HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models deleteHierarchicalEntityChild" }) @HTTP(path = "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}", method = "DELETE", hasBody = true) Observable> deleteHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("hChildId") UUID hChildId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addHierarchicalEntityChild" }) - @POST("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children") - Observable> addHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Body HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addCompositeEntityChild" }) @POST("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children") Observable> addCompositeEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Body CompositeChildModelCreateObject compositeChildModelCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @@ -346,81 +362,81 @@ interface ModelsService { @HTTP(path = "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}", method = "DELETE", hasBody = true) Observable> deleteCompositeEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("cChildId") UUID cChildId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getRegexEntityInfos" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listRegexEntityInfos" }) @GET("apps/{appId}/versions/{versionId}/regexentities") - Observable> getRegexEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listRegexEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createRegexEntityModel" }) @POST("apps/{appId}/versions/{versionId}/regexentities") Observable> createRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body RegexModelCreateObject regexEntityExtractorCreateObj, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getPatternAnyEntityInfos" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listPatternAnyEntityInfos" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities") - Observable> getPatternAnyEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listPatternAnyEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createPatternAnyEntityModel" }) @POST("apps/{appId}/versions/{versionId}/patternanyentities") Observable> createPatternAnyEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PatternAnyModelCreateObject extractorCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/entities/{entityId}/roles") - Observable> getEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createEntityRole" }) @POST("apps/{appId}/versions/{versionId}/entities/{entityId}/roles") Observable> createEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getPrebuiltEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listPrebuiltEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles") - Observable> getPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createPrebuiltEntityRole" }) @POST("apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles") Observable> createPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getClosedListEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listClosedListEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles") - Observable> getClosedListEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listClosedListEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createClosedListEntityRole" }) @POST("apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles") Observable> createClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getRegexEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listRegexEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles") - Observable> getRegexEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listRegexEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createRegexEntityRole" }) @POST("apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles") Observable> createRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getCompositeEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listCompositeEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles") - Observable> getCompositeEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listCompositeEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createCompositeEntityRole" }) @POST("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles") Observable> createCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getPatternAnyEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listPatternAnyEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles") - Observable> getPatternAnyEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listPatternAnyEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createPatternAnyEntityRole" }) @POST("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles") Observable> createPatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getHierarchicalEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listHierarchicalEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles") - Observable> getHierarchicalEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listHierarchicalEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createHierarchicalEntityRole" }) @POST("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles") Observable> createHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models getCustomPrebuiltEntityRoles" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models listCustomPrebuiltEntityRoles" }) @GET("apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles") - Observable> getCustomPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listCustomPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models createCustomPrebuiltEntityRole" }) @POST("apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles") @@ -570,13 +586,13 @@ interface ModelsService { /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param addIntentOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws CloudException thrown if the request is rejected by server + * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ @@ -585,7 +601,7 @@ public UUID addIntent(UUID appId, String versionId, AddIntentOptionalParameter a } /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -599,7 +615,7 @@ public ServiceFuture addIntentAsync(UUID appId, String versionId, AddInten } /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -617,7 +633,7 @@ public UUID call(ServiceResponse response) { } /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -641,7 +657,7 @@ public Observable> addIntentWithServiceResponseAsync(UUID } /** - * Adds an intent classifier to the application. + * Adds an intent to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -676,10 +692,10 @@ public Observable> call(Response response) { }); } - private ServiceResponse addIntentDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + private ServiceResponse addIntentDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(201, new TypeToken() { }.getType()) - .registerError(CloudException.class) + .registerError(ErrorResponseException.class) .build(response); } @@ -741,7 +757,7 @@ public UUID call(ServiceResponse response) { /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -756,7 +772,7 @@ public List listIntents(UUID appId, String versionId, ListInte } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -770,7 +786,7 @@ public ServiceFuture> listIntentsAsync(UUID appId, String } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -788,7 +804,7 @@ public List call(ServiceResponse> respo } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -813,7 +829,7 @@ public Observable>> listIntentsWithServic } /** - * Gets information about the intent models. + * Gets information about the intent models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -917,47 +933,46 @@ public List call(ServiceResponse> respo } } - /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the UUID object if successful. */ - public UUID addEntity(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter) { - return addEntityWithServiceResponseAsync(appId, versionId, addEntityOptionalParameter).toBlocking().single().body(); + public UUID addEntity(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject) { + return addEntityWithServiceResponseAsync(appId, versionId, entityModelCreateObject).toBlocking().single().body(); } /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture addEntityAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(addEntityWithServiceResponseAsync(appId, versionId, addEntityOptionalParameter), serviceCallback); + public ServiceFuture addEntityAsync(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(addEntityWithServiceResponseAsync(appId, versionId, entityModelCreateObject), serviceCallback); } /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - public Observable addEntityAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter) { - return addEntityWithServiceResponseAsync(appId, versionId, addEntityOptionalParameter).map(new Func1, UUID>() { + public Observable addEntityAsync(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject) { + return addEntityWithServiceResponseAsync(appId, versionId, entityModelCreateObject).map(new Func1, UUID>() { @Override public UUID call(ServiceResponse response) { return response.body(); @@ -966,15 +981,15 @@ public UUID call(ServiceResponse response) { } /** - * Adds an entity extractor to the application. + * Adds an entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param addEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityModelCreateObject A model object containing the name of the new entity extractor and its children. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - public Observable> addEntityWithServiceResponseAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter) { + public Observable> addEntityWithServiceResponseAsync(UUID appId, String versionId, EntityModelCreateObject entityModelCreateObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -984,34 +999,12 @@ public Observable> addEntityWithServiceResponseAsync(UUID if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - final String name = addEntityOptionalParameter != null ? addEntityOptionalParameter.name() : null; - - return addEntityWithServiceResponseAsync(appId, versionId, name); - } - - /** - * Adds an entity extractor to the application. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param name Name of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable> addEntityWithServiceResponseAsync(UUID appId, String versionId, String name) { - if (this.client.endpoint() == null) { - throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); - } - if (appId == null) { - throw new IllegalArgumentException("Parameter appId is required and cannot be null."); - } - if (versionId == null) { - throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + if (entityModelCreateObject == null) { + throw new IllegalArgumentException("Parameter entityModelCreateObject is required and cannot be null."); } - ModelCreateObject modelCreateObject = new ModelCreateObject(); - modelCreateObject.withName(name); + Validator.validate(entityModelCreateObject); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.addEntity(appId, versionId, this.client.acceptLanguage(), modelCreateObject, parameterizedHost, this.client.userAgent()) + return service.addEntity(appId, versionId, entityModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1032,65 +1025,9 @@ private ServiceResponse addEntityDelegate(Response response) .build(response); } - @Override - public ModelsAddEntityParameters addEntity() { - return new ModelsAddEntityParameters(this); - } - - /** - * Internal class implementing ModelsAddEntityDefinition. - */ - class ModelsAddEntityParameters implements ModelsAddEntityDefinition { - private ModelsImpl parent; - private UUID appId; - private String versionId; - private String name; - - /** - * Constructor. - * @param parent the parent object. - */ - ModelsAddEntityParameters(ModelsImpl parent) { - this.parent = parent; - } - - @Override - public ModelsAddEntityParameters withAppId(UUID appId) { - this.appId = appId; - return this; - } - - @Override - public ModelsAddEntityParameters withVersionId(String versionId) { - this.versionId = versionId; - return this; - } - - @Override - public ModelsAddEntityParameters withName(String name) { - this.name = name; - return this; - } - - @Override - public UUID execute() { - return addEntityWithServiceResponseAsync(appId, versionId, name).toBlocking().single().body(); - } - - @Override - public Observable executeAsync() { - return addEntityWithServiceResponseAsync(appId, versionId, name).map(new Func1, UUID>() { - @Override - public UUID call(ServiceResponse response) { - return response.body(); - } - }); - } - } - /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1098,14 +1035,14 @@ public UUID call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the List<EntityExtractor> object if successful. + * @return the List<NDepthEntityExtractor> object if successful. */ - public List listEntities(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { + public List listEntities(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { return listEntitiesWithServiceResponseAsync(appId, versionId, listEntitiesOptionalParameter).toBlocking().single().body(); } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1114,38 +1051,38 @@ public List listEntities(UUID appId, String versionId, ListEnti * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter, final ServiceCallback> serviceCallback) { + public ServiceFuture> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter, final ServiceCallback> serviceCallback) { return ServiceFuture.fromResponse(listEntitiesWithServiceResponseAsync(appId, versionId, listEntitiesOptionalParameter), serviceCallback); } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param listEntitiesOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<EntityExtractor> object + * @return the observable to the List<NDepthEntityExtractor> object */ - public Observable> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { - return listEntitiesWithServiceResponseAsync(appId, versionId, listEntitiesOptionalParameter).map(new Func1>, List>() { + public Observable> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { + return listEntitiesWithServiceResponseAsync(appId, versionId, listEntitiesOptionalParameter).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param listEntitiesOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<EntityExtractor> object + * @return the observable to the List<NDepthEntityExtractor> object */ - public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { + public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -1162,16 +1099,16 @@ public Observable>> listEntitiesWithServic } /** - * Gets information about the entity models. + * Gets information about all the simple entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param skip The number of entries to skip. Default value is 0. * @param take The number of entries to return. Maximum page size is 500. Default is 100. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the List<EntityExtractor> object + * @return the observable to the List<NDepthEntityExtractor> object */ - public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { + public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -1183,11 +1120,11 @@ public Observable>> listEntitiesWithServic } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.listEntities(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>>() { + .flatMap(new Func1, Observable>>>() { @Override - public Observable>> call(Response response) { + public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = listEntitiesDelegate(response); + ServiceResponse> clientResponse = listEntitiesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -1196,9 +1133,9 @@ public Observable>> call(Response> listEntitiesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken>() { }.getType()) + private ServiceResponse> listEntitiesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) .build(response); } @@ -1251,116 +1188,24 @@ public ModelsListEntitiesParameters withTake(Integer take) { } @Override - public List execute() { + public List execute() { return listEntitiesWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); } @Override - public Observable> executeAsync() { - return listEntitiesWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { + public Observable> executeAsync() { + return listEntitiesWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { @Override - public List call(ServiceResponse> response) { + public List call(ServiceResponse> response) { return response.body(); } }); } } - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UUID object if successful. - */ - public UUID addHierarchicalEntity(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject) { - return addHierarchicalEntityWithServiceResponseAsync(appId, versionId, hierarchicalModelCreateObject).toBlocking().single().body(); - } - - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture addHierarchicalEntityAsync(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(addHierarchicalEntityWithServiceResponseAsync(appId, versionId, hierarchicalModelCreateObject), serviceCallback); - } - - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable addHierarchicalEntityAsync(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject) { - return addHierarchicalEntityWithServiceResponseAsync(appId, versionId, hierarchicalModelCreateObject).map(new Func1, UUID>() { - @Override - public UUID call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Adds a hierarchical entity extractor to the application version. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hierarchicalModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable> addHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject) { - if (this.client.endpoint() == null) { - throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); - } - if (appId == null) { - throw new IllegalArgumentException("Parameter appId is required and cannot be null."); - } - if (versionId == null) { - throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); - } - if (hierarchicalModelCreateObject == null) { - throw new IllegalArgumentException("Parameter hierarchicalModelCreateObject is required and cannot be null."); - } - Validator.validate(hierarchicalModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.addHierarchicalEntity(appId, versionId, hierarchicalModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = addHierarchicalEntityDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse addHierarchicalEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) - .registerError(ErrorResponseException.class) - .build(response); - } - /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1375,7 +1220,7 @@ public List listHierarchicalEntities(UUID appId, St } /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1389,7 +1234,7 @@ public ServiceFuture> listHierarchicalEntities } /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1407,7 +1252,7 @@ public List call(ServiceResponse>> listHierar } /** - * Gets information about the hierarchical entity models. + * Gets information about all the hierarchical entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1536,101 +1381,9 @@ public List call(ServiceResponse addCompositeEntityAsync(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(addCompositeEntityWithServiceResponseAsync(appId, versionId, compositeModelCreateObject), serviceCallback); - } - - /** - * Adds a composite entity extractor to the application. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param compositeModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable addCompositeEntityAsync(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject) { - return addCompositeEntityWithServiceResponseAsync(appId, versionId, compositeModelCreateObject).map(new Func1, UUID>() { - @Override - public UUID call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Adds a composite entity extractor to the application. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param compositeModelCreateObject A model containing the name and children of the new entity extractor. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable> addCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject) { - if (this.client.endpoint() == null) { - throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); - } - if (appId == null) { - throw new IllegalArgumentException("Parameter appId is required and cannot be null."); - } - if (versionId == null) { - throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); - } - if (compositeModelCreateObject == null) { - throw new IllegalArgumentException("Parameter compositeModelCreateObject is required and cannot be null."); - } - Validator.validate(compositeModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.addCompositeEntity(appId, versionId, compositeModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = addCompositeEntityDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse addCompositeEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) - .registerError(ErrorResponseException.class) - .build(response); - } - /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1645,7 +1398,7 @@ public List listCompositeEntities(UUID appId, String v } /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1659,7 +1412,7 @@ public ServiceFuture> listCompositeEntitiesAsync( } /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1677,7 +1430,7 @@ public List call(ServiceResponse>> listComposite } /** - * Gets information about the composite entity models. + * Gets information about all the composite entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1808,7 +1561,7 @@ public List call(ServiceResponse listClosedLists(UUID appId, String versio } /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1837,7 +1590,7 @@ public ServiceFuture> listClosedListsAsync(UUID } /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1855,7 +1608,7 @@ public List call(ServiceResponse>> listClosedLi } /** - * Gets information about the closedlist models. + * Gets information about all the list entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1985,11 +1738,11 @@ public List call(ServiceResponse addClosedListAsync(UUID appId, String versionId, Clos } /** - * Adds a closed list model to the application. + * Adds a list entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -2032,11 +1785,11 @@ public UUID call(ServiceResponse response) { } /** - * Adds a closed list model to the application. + * Adds a list entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param closedListModelCreateObject A model containing the name and words for the new closed list entity extractor. + * @param closedListModelCreateObject A model containing the name and words for the new list entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -2077,7 +1830,7 @@ private ServiceResponse addClosedListDelegate(Response respo } /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2092,7 +1845,7 @@ public List addPrebuilt(UUID appId, String versionId, L } /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2106,7 +1859,7 @@ public ServiceFuture> addPrebuiltAsync(UUID appId, } /** - * Adds a list of prebuilt entity extractors to the application. + * Adds a list of prebuilt entities to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2124,7 +1877,7 @@ public List call(ServiceResponse> addPrebuiltDelegate(Respo /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2185,7 +1938,7 @@ public List listPrebuilts(UUID appId, String versionId, } /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2199,7 +1952,7 @@ public ServiceFuture> listPrebuiltsAsync(UUID appI } /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2217,7 +1970,7 @@ public List call(ServiceResponse>> listPrebuiltsW } /** - * Gets information about the prebuilt entity models. + * Gets information about all the prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2347,7 +2100,7 @@ public List call(ServiceResponse listPrebuiltEntities(UUID appId, Strin } /** - * Gets all the available prebuilt entity extractors for the application. + * Gets all the available prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2374,7 +2127,7 @@ public ServiceFuture> listPrebuiltEntitiesAsy } /** - * Gets all the available prebuilt entity extractors for the application. + * Gets all the available prebuilt entities in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2391,7 +2144,7 @@ public List call(ServiceResponse> listPrebuiltEntities /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2447,7 +2200,7 @@ public List listModels(UUID appId, String versionId, ListMode } /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2461,7 +2214,7 @@ public ServiceFuture> listModelsAsync(UUID appId, String } /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2479,7 +2232,7 @@ public List call(ServiceResponse> res } /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2504,7 +2257,7 @@ public Observable>> listModelsWithServic } /** - * Gets information about the application version models. + * Gets information about all the intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2610,7 +2363,7 @@ public List call(ServiceResponse> res /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2626,7 +2379,7 @@ public List examplesMethod(UUID appId, String versionId, String } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2641,7 +2394,7 @@ public ServiceFuture> examplesMethodAsync(UUID appId, Stri } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2660,7 +2413,7 @@ public List call(ServiceResponse> respons } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2689,7 +2442,7 @@ public Observable>> examplesMethodWithServ } /** - * Gets the utterances for the given model in the given app version. + * Gets the example utterances for the given intent or entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2805,7 +2558,7 @@ public List call(ServiceResponse> respons } /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2820,7 +2573,7 @@ public IntentClassifier getIntent(UUID appId, String versionId, UUID intentId) { } /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2834,7 +2587,7 @@ public ServiceFuture getIntentAsync(UUID appId, String version } /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2852,7 +2605,7 @@ public IntentClassifier call(ServiceResponse response) { } /** - * Gets information about the intent model. + * Gets information about the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2897,7 +2650,7 @@ private ServiceResponse getIntentDelegate(Response updateIntentAsync(UUID appId, String versi } /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2947,7 +2700,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -2975,7 +2728,7 @@ public Observable> updateIntentWithServiceRespo } /** - * Updates the name of an intent classifier. + * Updates the name of an intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3086,7 +2839,7 @@ public OperationStatus call(ServiceResponse response) { /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3102,7 +2855,7 @@ public OperationStatus deleteIntent(UUID appId, String versionId, UUID intentId, } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3117,7 +2870,7 @@ public ServiceFuture deleteIntentAsync(UUID appId, String versi } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3136,7 +2889,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3164,12 +2917,12 @@ public Observable> deleteIntentWithServiceRespo } /** - * Deletes an intent classifier from the application. + * Deletes an intent from a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param deleteUtterances Also delete the intent's utterances (true). Or move the utterances to the None intent (false - the default value). + * @param deleteUtterances If true, deletes the intent's example utterances. If false, moves the example utterances to the None intent. The default value is false. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -3272,7 +3025,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3280,14 +3033,14 @@ public OperationStatus call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the EntityExtractor object if successful. + * @return the NDepthEntityExtractor object if successful. */ - public EntityExtractor getEntity(UUID appId, String versionId, UUID entityId) { + public NDepthEntityExtractor getEntity(UUID appId, String versionId, UUID entityId) { return getEntityWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3296,38 +3049,38 @@ public EntityExtractor getEntity(UUID appId, String versionId, UUID entityId) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture getEntityAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback serviceCallback) { + public ServiceFuture getEntityAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(getEntityWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the EntityExtractor object + * @return the observable to the NDepthEntityExtractor object */ - public Observable getEntityAsync(UUID appId, String versionId, UUID entityId) { - return getEntityWithServiceResponseAsync(appId, versionId, entityId).map(new Func1, EntityExtractor>() { + public Observable getEntityAsync(UUID appId, String versionId, UUID entityId) { + return getEntityWithServiceResponseAsync(appId, versionId, entityId).map(new Func1, NDepthEntityExtractor>() { @Override - public EntityExtractor call(ServiceResponse response) { + public NDepthEntityExtractor call(ServiceResponse response) { return response.body(); } }); } /** - * Gets information about the entity model. + * Gets information about an entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the EntityExtractor object + * @return the observable to the NDepthEntityExtractor object */ - public Observable> getEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable> getEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -3342,11 +3095,11 @@ public Observable> getEntityWithServiceResponse } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.getEntity(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = getEntityDelegate(response); + ServiceResponse clientResponse = getEntityDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3355,57 +3108,53 @@ public Observable> call(Response }); } - private ServiceResponse getEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) + private ServiceResponse getEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) .build(response); } - /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - public OperationStatus updateEntity(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter) { - return updateEntityWithServiceResponseAsync(appId, versionId, entityId, updateEntityOptionalParameter).toBlocking().single().body(); + public OperationStatus deleteEntity(UUID appId, String versionId, UUID entityId) { + return deleteEntityWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateEntityAsync(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateEntityWithServiceResponseAsync(appId, versionId, entityId, updateEntityOptionalParameter), serviceCallback); + public ServiceFuture deleteEntityAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteEntityWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable updateEntityAsync(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter) { - return updateEntityWithServiceResponseAsync(appId, versionId, entityId, updateEntityOptionalParameter).map(new Func1, OperationStatus>() { + public Observable deleteEntityAsync(UUID appId, String versionId, UUID entityId) { + return deleteEntityWithServiceResponseAsync(appId, versionId, entityId).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { return response.body(); @@ -3414,16 +3163,15 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the name of an entity extractor. + * Deletes an entity or a child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param updateEntityOptionalParameter the object representing the optional parameters to be set before calling this API + * @param entityId The entity extractor or the child entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> updateEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter) { + public Observable> deleteEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -3436,22 +3184,378 @@ public Observable> updateEntityWithServiceRespo if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - final String name = updateEntityOptionalParameter != null ? updateEntityOptionalParameter.name() : null; - - return updateEntityWithServiceResponseAsync(appId, versionId, entityId, name); - } - - /** - * Updates the name of an entity extractor. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param entityId The entity extractor ID. - * @param name The entity's new name. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the OperationStatus object - */ - public Observable> updateEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.deleteEntity(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = deleteEntityDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse deleteEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates the name of an entity extractor or the name and instanceOf model of a child entity extractor. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a child entity extractor + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus updateEntityChild(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject) { + return updateEntityChildWithServiceResponseAsync(appId, versionId, entityId, entityModelUpdateObject).toBlocking().single().body(); + } + + /** + * Updates the name of an entity extractor or the name and instanceOf model of a child entity extractor. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a child entity extractor + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateEntityChildAsync(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateEntityChildWithServiceResponseAsync(appId, versionId, entityId, entityModelUpdateObject), serviceCallback); + } + + /** + * Updates the name of an entity extractor or the name and instanceOf model of a child entity extractor. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a child entity extractor + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable updateEntityChildAsync(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject) { + return updateEntityChildWithServiceResponseAsync(appId, versionId, entityId, entityModelUpdateObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates the name of an entity extractor or the name and instanceOf model of a child entity extractor. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor or the child entity extractor ID. + * @param entityModelUpdateObject A model object containing the name new entity extractor or the name and instance of model of a child entity extractor + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> updateEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, EntityModelUpdateObject entityModelUpdateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (entityId == null) { + throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); + } + if (entityModelUpdateObject == null) { + throw new IllegalArgumentException("Parameter entityModelUpdateObject is required and cannot be null."); + } + Validator.validate(entityModelUpdateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.updateEntityChild(appId, versionId, entityId, entityModelUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateEntityChildDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateEntityChildDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ModelFeatureInformation> object if successful. + */ + public List getIntentFeatures(UUID appId, String versionId, UUID intentId) { + return getIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId).toBlocking().single().body(); + } + + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> getIntentFeaturesAsync(UUID appId, String versionId, UUID intentId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId), serviceCallback); + } + + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + public Observable> getIntentFeaturesAsync(UUID appId, String versionId, UUID intentId) { + return getIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + public Observable>> getIntentFeaturesWithServiceResponseAsync(UUID appId, String versionId, UUID intentId) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (intentId == null) { + throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.getIntentFeatures(appId, versionId, intentId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getIntentFeaturesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> getIntentFeaturesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus replaceIntentFeatures(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject) { + return replaceIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId, featureRelationsUpdateObject).toBlocking().single().body(); + } + + /** + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture replaceIntentFeaturesAsync(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(replaceIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId, featureRelationsUpdateObject), serviceCallback); + } + + /** + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable replaceIntentFeaturesAsync(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject) { + return replaceIntentFeaturesWithServiceResponseAsync(appId, versionId, intentId, featureRelationsUpdateObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates the information of the features used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> replaceIntentFeaturesWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, List featureRelationsUpdateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (intentId == null) { + throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); + } + if (featureRelationsUpdateObject == null) { + throw new IllegalArgumentException("Parameter featureRelationsUpdateObject is required and cannot be null."); + } + Validator.validate(featureRelationsUpdateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.replaceIntentFeatures(appId, versionId, intentId, featureRelationsUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = replaceIntentFeaturesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse replaceIntentFeaturesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus deleteIntentFeature(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject) { + return deleteIntentFeatureWithServiceResponseAsync(appId, versionId, intentId, featureRelationDeleteObject).toBlocking().single().body(); + } + + /** + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture deleteIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteIntentFeatureWithServiceResponseAsync(appId, versionId, intentId, featureRelationDeleteObject), serviceCallback); + } + + /** + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable deleteIntentFeatureAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject) { + return deleteIntentFeatureWithServiceResponseAsync(appId, versionId, intentId, featureRelationDeleteObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Deletes a relation from the feature relations used by the intent in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param intentId The intent classifier ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> deleteIntentFeatureWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ModelFeatureInformation featureRelationDeleteObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -3461,18 +3565,20 @@ public Observable> updateEntityWithServiceRespo if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - if (entityId == null) { - throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); + if (intentId == null) { + throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - ModelUpdateObject modelUpdateObject = new ModelUpdateObject(); - modelUpdateObject.withName(name); + if (featureRelationDeleteObject == null) { + throw new IllegalArgumentException("Parameter featureRelationDeleteObject is required and cannot be null."); + } + Validator.validate(featureRelationDeleteObject); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.updateEntity(appId, versionId, entityId, this.client.acceptLanguage(), modelUpdateObject, parameterizedHost, this.client.userAgent()) + return service.deleteIntentFeature(appId, versionId, intentId, featureRelationDeleteObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = updateEntityDelegate(response); + ServiceResponse clientResponse = deleteIntentFeatureDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3481,116 +3587,246 @@ public Observable> call(Response }); } - private ServiceResponse updateEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse deleteIntentFeatureDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) .build(response); } - @Override - public ModelsUpdateEntityParameters updateEntity() { - return new ModelsUpdateEntityParameters(this); + /** + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<ModelFeatureInformation> object if successful. + */ + public List getEntityFeatures(UUID appId, String versionId, UUID entityId) { + return getEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Internal class implementing ModelsUpdateEntityDefinition. + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object */ - class ModelsUpdateEntityParameters implements ModelsUpdateEntityDefinition { - private ModelsImpl parent; - private UUID appId; - private String versionId; - private UUID entityId; - private String name; + public ServiceFuture> getEntityFeaturesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(getEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + } - /** - * Constructor. - * @param parent the parent object. - */ - ModelsUpdateEntityParameters(ModelsImpl parent) { - this.parent = parent; - } + /** + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + public Observable> getEntityFeaturesAsync(UUID appId, String versionId, UUID entityId) { + return getEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } - @Override - public ModelsUpdateEntityParameters withAppId(UUID appId) { - this.appId = appId; - return this; + /** + * Gets the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<ModelFeatureInformation> object + */ + public Observable>> getEntityFeaturesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } - - @Override - public ModelsUpdateEntityParameters withVersionId(String versionId) { - this.versionId = versionId; - return this; + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } - - @Override - public ModelsUpdateEntityParameters withEntityId(UUID entityId) { - this.entityId = entityId; - return this; + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - - @Override - public ModelsUpdateEntityParameters withName(String name) { - this.name = name; - return this; + if (entityId == null) { + throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.getEntityFeatures(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = getEntityFeaturesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } - @Override - public OperationStatus execute() { - return updateEntityWithServiceResponseAsync(appId, versionId, entityId, name).toBlocking().single().body(); + private ServiceResponse> getEntityFeaturesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); } - @Override - public Observable executeAsync() { - return updateEntityWithServiceResponseAsync(appId, versionId, entityId, name).map(new Func1, OperationStatus>() { + /** + * Updates the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus replaceEntityFeatures(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject) { + return replaceEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId, featureRelationsUpdateObject).toBlocking().single().body(); + } + + /** + * Updates the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture replaceEntityFeaturesAsync(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(replaceEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId, featureRelationsUpdateObject), serviceCallback); + } + + /** + * Updates the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable replaceEntityFeaturesAsync(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject) { + return replaceEntityFeaturesWithServiceResponseAsync(appId, versionId, entityId, featureRelationsUpdateObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates the information of the features used by the entity in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param featureRelationsUpdateObject A list of feature information objects containing the new feature relations. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> replaceEntityFeaturesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, List featureRelationsUpdateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (entityId == null) { + throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); + } + if (featureRelationsUpdateObject == null) { + throw new IllegalArgumentException("Parameter featureRelationsUpdateObject is required and cannot be null."); + } + Validator.validate(featureRelationsUpdateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.replaceEntityFeatures(appId, versionId, entityId, featureRelationsUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { @Override - public OperationStatus call(ServiceResponse response) { - return response.body(); + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = replaceEntityFeaturesDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } } }); - } + } + + private ServiceResponse replaceEntityFeaturesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); } /** - * Deletes an entity extractor from the application. + * Deletes a relation from the feature relations used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - public OperationStatus deleteEntity(UUID appId, String versionId, UUID entityId) { - return deleteEntityWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public OperationStatus deleteEntityFeature(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject) { + return deleteEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationDeleteObject).toBlocking().single().body(); } /** - * Deletes an entity extractor from the application. + * Deletes a relation from the feature relations used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture deleteEntityAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(deleteEntityWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture deleteEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(deleteEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationDeleteObject), serviceCallback); } /** - * Deletes an entity extractor from the application. + * Deletes a relation from the feature relations used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable deleteEntityAsync(UUID appId, String versionId, UUID entityId) { - return deleteEntityWithServiceResponseAsync(appId, versionId, entityId).map(new Func1, OperationStatus>() { + public Observable deleteEntityFeatureAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject) { + return deleteEntityFeatureWithServiceResponseAsync(appId, versionId, entityId, featureRelationDeleteObject).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { return response.body(); @@ -3599,15 +3835,16 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes an entity extractor from the application. + * Deletes a relation from the feature relations used by the entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The entity extractor ID. + * @param featureRelationDeleteObject A feature information object containing the feature relation to delete. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> deleteEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable> deleteEntityFeatureWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, ModelFeatureInformation featureRelationDeleteObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -3620,13 +3857,17 @@ public Observable> deleteEntityWithServiceRespo if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } + if (featureRelationDeleteObject == null) { + throw new IllegalArgumentException("Parameter featureRelationDeleteObject is required and cannot be null."); + } + Validator.validate(featureRelationDeleteObject); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.deleteEntity(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteEntityFeature(appId, versionId, entityId, featureRelationDeleteObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { try { - ServiceResponse clientResponse = deleteEntityDelegate(response); + ServiceResponse clientResponse = deleteEntityFeatureDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -3635,7 +3876,7 @@ public Observable> call(Response }); } - private ServiceResponse deleteEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse deleteEntityFeatureDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) @@ -3643,7 +3884,7 @@ private ServiceResponse deleteEntityDelegate(Response getHierarchicalEntityAsync(UUI } /** - * Gets information about the hierarchical entity model. + * Gets information about a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3690,7 +3931,7 @@ public HierarchicalEntityExtractor call(ServiceResponse getHierarchicalEntityDelega .build(response); } + /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the OperationStatus object if successful. */ - public OperationStatus updateHierarchicalEntity(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject) { - return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject).toBlocking().single().body(); + public OperationStatus updateHierarchicalEntity(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter) { + return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, updateHierarchicalEntityOptionalParameter).toBlocking().single().body(); } /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject), serviceCallback); + public ServiceFuture updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, updateHierarchicalEntityOptionalParameter), serviceCallback); } /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject) { - return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject).map(new Func1, OperationStatus>() { + public Observable updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter) { + return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, updateHierarchicalEntityOptionalParameter).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { return response.body(); @@ -3784,16 +4026,16 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the name and children of a hierarchical entity model. + * Updates the name of a hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param hEntityId The hierarchical entity extractor ID. - * @param hierarchicalModelUpdateObject Model containing names of the children of the hierarchical entity. + * @param updateHierarchicalEntityOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> updateHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject) { + public Observable> updateHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UpdateHierarchicalEntityOptionalParameter updateHierarchicalEntityOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -3806,12 +4048,38 @@ public Observable> updateHierarchicalEntityWith if (hEntityId == null) { throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } - if (hierarchicalModelUpdateObject == null) { - throw new IllegalArgumentException("Parameter hierarchicalModelUpdateObject is required and cannot be null."); + final String name = updateHierarchicalEntityOptionalParameter != null ? updateHierarchicalEntityOptionalParameter.name() : null; + + return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, name); + } + + /** + * Updates the name of a hierarchical entity model in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param hEntityId The hierarchical entity extractor ID. + * @param name The entity's new name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> updateHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, String name) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (hEntityId == null) { + throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } - Validator.validate(hierarchicalModelUpdateObject); + ModelUpdateObject modelUpdateObject = new ModelUpdateObject(); + modelUpdateObject.withName(name); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.updateHierarchicalEntity(appId, versionId, hEntityId, hierarchicalModelUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateHierarchicalEntity(appId, versionId, hEntityId, this.client.acceptLanguage(), modelUpdateObject, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3825,15 +4093,78 @@ public Observable> call(Response }); } - private ServiceResponse updateHierarchicalEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(200, new TypeToken() { }.getType()) - .registerError(ErrorResponseException.class) - .build(response); + private ServiceResponse updateHierarchicalEntityDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + @Override + public ModelsUpdateHierarchicalEntityParameters updateHierarchicalEntity() { + return new ModelsUpdateHierarchicalEntityParameters(this); + } + + /** + * Internal class implementing ModelsUpdateHierarchicalEntityDefinition. + */ + class ModelsUpdateHierarchicalEntityParameters implements ModelsUpdateHierarchicalEntityDefinition { + private ModelsImpl parent; + private UUID appId; + private String versionId; + private UUID hEntityId; + private String name; + + /** + * Constructor. + * @param parent the parent object. + */ + ModelsUpdateHierarchicalEntityParameters(ModelsImpl parent) { + this.parent = parent; + } + + @Override + public ModelsUpdateHierarchicalEntityParameters withAppId(UUID appId) { + this.appId = appId; + return this; + } + + @Override + public ModelsUpdateHierarchicalEntityParameters withVersionId(String versionId) { + this.versionId = versionId; + return this; + } + + @Override + public ModelsUpdateHierarchicalEntityParameters withHEntityId(UUID hEntityId) { + this.hEntityId = hEntityId; + return this; + } + + @Override + public ModelsUpdateHierarchicalEntityParameters withName(String name) { + this.name = name; + return this; + } + + @Override + public OperationStatus execute() { + return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, name).toBlocking().single().body(); + } + + @Override + public Observable executeAsync() { + return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, name).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3848,7 +4179,7 @@ public OperationStatus deleteHierarchicalEntity(UUID appId, String versionId, UU } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3862,7 +4193,7 @@ public ServiceFuture deleteHierarchicalEntityAsync(UUID appId, } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3880,7 +4211,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a hierarchical entity extractor from the application version. + * Deletes a hierarchical entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3924,7 +4255,7 @@ private ServiceResponse deleteHierarchicalEntityDelegate(Respon } /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3939,7 +4270,7 @@ public CompositeEntityExtractor getCompositeEntity(UUID appId, String versionId, } /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3953,7 +4284,7 @@ public ServiceFuture getCompositeEntityAsync(UUID appI } /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -3971,7 +4302,7 @@ public CompositeEntityExtractor call(ServiceResponse r } /** - * Gets information about the composite entity model. + * Gets information about a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4015,7 +4346,7 @@ private ServiceResponse getCompositeEntityDelegate(Res } /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4031,7 +4362,7 @@ public OperationStatus updateCompositeEntity(UUID appId, String versionId, UUID } /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4046,7 +4377,7 @@ public ServiceFuture updateCompositeEntityAsync(UUID appId, Str } /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4065,7 +4396,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the composite entity extractor. + * Updates a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4114,7 +4445,7 @@ private ServiceResponse updateCompositeEntityDelegate(Response< } /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4129,7 +4460,7 @@ public OperationStatus deleteCompositeEntity(UUID appId, String versionId, UUID } /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4143,7 +4474,7 @@ public ServiceFuture deleteCompositeEntityAsync(UUID appId, Str } /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4161,7 +4492,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a composite entity extractor from the application. + * Deletes a composite entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4205,11 +4536,11 @@ private ServiceResponse deleteCompositeEntityDelegate(Response< } /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -4220,11 +4551,11 @@ public ClosedListEntityExtractor getClosedList(UUID appId, String versionId, UUI } /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -4234,11 +4565,11 @@ public ServiceFuture getClosedListAsync(UUID appId, S } /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClosedListEntityExtractor object */ @@ -4252,11 +4583,11 @@ public ClosedListEntityExtractor call(ServiceResponse } /** - * Gets information of a closed list model. + * Gets information about a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClosedListEntityExtractor object */ @@ -4296,12 +4627,12 @@ private ServiceResponse getClosedListDelegate(Respons } /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -4312,12 +4643,12 @@ public OperationStatus updateClosedList(UUID appId, String versionId, UUID clEnt } /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -4327,12 +4658,12 @@ public ServiceFuture updateClosedListAsync(UUID appId, String v } /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -4346,12 +4677,12 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the closed list model. + * Updates the list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. - * @param closedListModelUpdateObject The new entity name and words list. + * @param clEntityId The list model ID. + * @param closedListModelUpdateObject The new list entity name and words list. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -4396,11 +4727,11 @@ private ServiceResponse updateClosedListDelegate(Response patchClosedListAsync(UUID appId, String ve } /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param patchClosedListOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -4446,11 +4777,11 @@ public OperationStatus call(ServiceResponse response) { } /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param patchClosedListOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -4474,11 +4805,11 @@ public Observable> patchClosedListWithServiceRe } /** - * Adds a batch of sublists to an existing closedlist. + * Adds a batch of sublists to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param subLists Sublists to add. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -4585,11 +4916,11 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -4600,11 +4931,11 @@ public OperationStatus deleteClosedList(UUID appId, String versionId, UUID clEnt } /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -4614,11 +4945,11 @@ public ServiceFuture deleteClosedListAsync(UUID appId, String v } /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -4632,11 +4963,11 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a closed list model from the application. + * Deletes a list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list model ID. + * @param clEntityId The list entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -4676,7 +5007,7 @@ private ServiceResponse deleteClosedListDelegate(Response getPrebuiltAsync(UUID appId, Strin } /** - * Gets information about the prebuilt entity model. + * Gets information about a prebuilt entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4723,7 +5054,7 @@ public PrebuiltEntityExtractor call(ServiceResponse res } /** - * Gets information about the prebuilt entity model. + * Gets information about a prebuilt entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4767,7 +5098,7 @@ private ServiceResponse getPrebuiltDelegate(Response deletePrebuiltAsync(UUID appId, String ver } /** - * Deletes a prebuilt entity extractor from the application. + * Deletes a prebuilt entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4814,7 +5145,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a prebuilt entity extractor from the application. + * Deletes a prebuilt entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -4858,47 +5189,47 @@ private ServiceResponse deletePrebuiltDelegate(Response deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId, final ServiceCallback serviceCallback) { + public ServiceFuture deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(deleteSubListWithServiceResponseAsync(appId, versionId, clEntityId, subListId), serviceCallback); } /** - * Deletes a sublist of a specific closed list model. + * Deletes a sublist of a specific list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId) { + public Observable deleteSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId) { return deleteSubListWithServiceResponseAsync(appId, versionId, clEntityId, subListId).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { @@ -4908,16 +5239,16 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a sublist of a specific closed list model. + * Deletes a sublist of a specific list entity model from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> deleteSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, int subListId) { + public Observable> deleteSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, long subListId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -4953,11 +5284,11 @@ private ServiceResponse deleteSubListDelegate(Response deleteSubListDelegate(Response updateSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, final ServiceCallback serviceCallback) { + public ServiceFuture updateSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(updateSubListWithServiceResponseAsync(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject), serviceCallback); } /** - * Updates one of the closed list's sublists. + * Updates one of the list entity's sublists in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and the list of words. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable updateSubListAsync(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject) { + public Observable updateSubListAsync(UUID appId, String versionId, UUID clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject) { return updateSubListWithServiceResponseAsync(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject).map(new Func1, OperationStatus>() { @Override public OperationStatus call(ServiceResponse response) { @@ -5006,17 +5337,17 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates one of the closed list's sublists. + * Updates one of the list entity's sublists in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param subListId The sublist ID. * @param wordListBaseUpdateObject A sublist update object containing the new canonical form and the list of words. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - public Observable> updateSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject) { + public Observable> updateSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5057,48 +5388,48 @@ private ServiceResponse updateSubListDelegate(Response getIntentSuggestions(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter) { - return getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, getIntentSuggestionsOptionalParameter).toBlocking().single().body(); + public List listIntentSuggestions(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter) { + return listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, listIntentSuggestionsOptionalParameter).toBlocking().single().body(); } /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, getIntentSuggestionsOptionalParameter), serviceCallback); + public ServiceFuture> listIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, listIntentSuggestionsOptionalParameter), serviceCallback); } /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentSuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<IntentsSuggestionExample> object */ - public Observable> getIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter) { - return getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, getIntentSuggestionsOptionalParameter).map(new Func1>, List>() { + public Observable> listIntentSuggestionsAsync(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter) { + return listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, listIntentSuggestionsOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -5107,16 +5438,16 @@ public List call(ServiceResponse>> getIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter) { + public Observable>> listIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ListIntentSuggestionsOptionalParameter listIntentSuggestionsOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5129,13 +5460,13 @@ public Observable>> getIntentSugg if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - final Integer take = getIntentSuggestionsOptionalParameter != null ? getIntentSuggestionsOptionalParameter.take() : null; + final Integer take = listIntentSuggestionsOptionalParameter != null ? listIntentSuggestionsOptionalParameter.take() : null; - return getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take); + return listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take); } /** - * Suggests examples that would improve the accuracy of the intent model. + * Suggests example utterances that would improve the accuracy of the intent model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5144,7 +5475,7 @@ public Observable>> getIntentSugg * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<IntentsSuggestionExample> object */ - public Observable>> getIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer take) { + public Observable>> listIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5158,12 +5489,12 @@ public Observable>> getIntentSugg throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getIntentSuggestions(appId, versionId, intentId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listIntentSuggestions(appId, versionId, intentId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getIntentSuggestionsDelegate(response); + ServiceResponse> clientResponse = listIntentSuggestionsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -5172,7 +5503,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getIntentSuggestionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listIntentSuggestionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -5180,14 +5511,14 @@ private ServiceResponse> getIntentSuggestionsDele } @Override - public ModelsGetIntentSuggestionsParameters getIntentSuggestions() { - return new ModelsGetIntentSuggestionsParameters(this); + public ModelsListIntentSuggestionsParameters listIntentSuggestions() { + return new ModelsListIntentSuggestionsParameters(this); } /** - * Internal class implementing ModelsGetIntentSuggestionsDefinition. + * Internal class implementing ModelsListIntentSuggestionsDefinition. */ - class ModelsGetIntentSuggestionsParameters implements ModelsGetIntentSuggestionsDefinition { + class ModelsListIntentSuggestionsParameters implements ModelsListIntentSuggestionsDefinition { private ModelsImpl parent; private UUID appId; private String versionId; @@ -5198,42 +5529,42 @@ class ModelsGetIntentSuggestionsParameters implements ModelsGetIntentSuggestions * Constructor. * @param parent the parent object. */ - ModelsGetIntentSuggestionsParameters(ModelsImpl parent) { + ModelsListIntentSuggestionsParameters(ModelsImpl parent) { this.parent = parent; } @Override - public ModelsGetIntentSuggestionsParameters withAppId(UUID appId) { + public ModelsListIntentSuggestionsParameters withAppId(UUID appId) { this.appId = appId; return this; } @Override - public ModelsGetIntentSuggestionsParameters withVersionId(String versionId) { + public ModelsListIntentSuggestionsParameters withVersionId(String versionId) { this.versionId = versionId; return this; } @Override - public ModelsGetIntentSuggestionsParameters withIntentId(UUID intentId) { + public ModelsListIntentSuggestionsParameters withIntentId(UUID intentId) { this.intentId = intentId; return this; } @Override - public ModelsGetIntentSuggestionsParameters withTake(Integer take) { + public ModelsListIntentSuggestionsParameters withTake(Integer take) { this.take = take; return this; } @Override public List execute() { - return getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take).toBlocking().single().body(); + return listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take).map(new Func1>, List>() { + return listIntentSuggestionsWithServiceResponseAsync(appId, versionId, intentId, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -5244,48 +5575,48 @@ public List call(ServiceResponse getEntitySuggestions(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter) { - return getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, getEntitySuggestionsOptionalParameter).toBlocking().single().body(); + public List listEntitySuggestions(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter) { + return listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, listEntitySuggestionsOptionalParameter).toBlocking().single().body(); } /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. - * @param getEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, getEntitySuggestionsOptionalParameter), serviceCallback); + public ServiceFuture> listEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, listEntitySuggestionsOptionalParameter), serviceCallback); } /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param entityId The target entity extractor model to enhance. - * @param getEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listEntitySuggestionsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntitiesSuggestionExample> object */ - public Observable> getEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter) { - return getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, getEntitySuggestionsOptionalParameter).map(new Func1>, List>() { + public Observable> listEntitySuggestionsAsync(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter) { + return listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, listEntitySuggestionsOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -5294,16 +5625,16 @@ public List call(ServiceResponse>> getEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter) { + public Observable>> listEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, ListEntitySuggestionsOptionalParameter listEntitySuggestionsOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5316,13 +5647,13 @@ public Observable>> getEntitySug if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - final Integer take = getEntitySuggestionsOptionalParameter != null ? getEntitySuggestionsOptionalParameter.take() : null; + final Integer take = listEntitySuggestionsOptionalParameter != null ? listEntitySuggestionsOptionalParameter.take() : null; - return getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take); + return listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take); } /** - * Get suggestion examples that would improve the accuracy of the entity model. + * Get suggested example utterances that would improve the accuracy of the entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5331,7 +5662,7 @@ public Observable>> getEntitySug * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntitiesSuggestionExample> object */ - public Observable>> getEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, Integer take) { + public Observable>> listEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5345,12 +5676,12 @@ public Observable>> getEntitySug throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getEntitySuggestions(appId, versionId, entityId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listEntitySuggestions(appId, versionId, entityId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getEntitySuggestionsDelegate(response); + ServiceResponse> clientResponse = listEntitySuggestionsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -5359,7 +5690,7 @@ public Observable>> call(Respons }); } - private ServiceResponse> getEntitySuggestionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listEntitySuggestionsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -5367,14 +5698,14 @@ private ServiceResponse> getEntitySuggestionsDel } @Override - public ModelsGetEntitySuggestionsParameters getEntitySuggestions() { - return new ModelsGetEntitySuggestionsParameters(this); + public ModelsListEntitySuggestionsParameters listEntitySuggestions() { + return new ModelsListEntitySuggestionsParameters(this); } /** - * Internal class implementing ModelsGetEntitySuggestionsDefinition. + * Internal class implementing ModelsListEntitySuggestionsDefinition. */ - class ModelsGetEntitySuggestionsParameters implements ModelsGetEntitySuggestionsDefinition { + class ModelsListEntitySuggestionsParameters implements ModelsListEntitySuggestionsDefinition { private ModelsImpl parent; private UUID appId; private String versionId; @@ -5385,42 +5716,42 @@ class ModelsGetEntitySuggestionsParameters implements ModelsGetEntitySuggestions * Constructor. * @param parent the parent object. */ - ModelsGetEntitySuggestionsParameters(ModelsImpl parent) { + ModelsListEntitySuggestionsParameters(ModelsImpl parent) { this.parent = parent; } @Override - public ModelsGetEntitySuggestionsParameters withAppId(UUID appId) { + public ModelsListEntitySuggestionsParameters withAppId(UUID appId) { this.appId = appId; return this; } @Override - public ModelsGetEntitySuggestionsParameters withVersionId(String versionId) { + public ModelsListEntitySuggestionsParameters withVersionId(String versionId) { this.versionId = versionId; return this; } @Override - public ModelsGetEntitySuggestionsParameters withEntityId(UUID entityId) { + public ModelsListEntitySuggestionsParameters withEntityId(UUID entityId) { this.entityId = entityId; return this; } @Override - public ModelsGetEntitySuggestionsParameters withTake(Integer take) { + public ModelsListEntitySuggestionsParameters withTake(Integer take) { this.take = take; return this; } @Override public List execute() { - return getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take).toBlocking().single().body(); + return listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take).map(new Func1>, List>() { + return listEntitySuggestionsWithServiceResponseAsync(appId, versionId, entityId, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -5430,66 +5761,66 @@ public List call(ServiceResponse addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject, final ServiceCallback serviceCallback) { + public ServiceFuture addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(addSubListWithServiceResponseAsync(appId, versionId, clEntityId, wordListCreateObject), serviceCallback); } /** - * Adds a list to an existing closed list. + * Adds a sublist to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Integer object + * @return the observable to the Long object */ - public Observable addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject) { - return addSubListWithServiceResponseAsync(appId, versionId, clEntityId, wordListCreateObject).map(new Func1, Integer>() { + public Observable addSubListAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject) { + return addSubListWithServiceResponseAsync(appId, versionId, clEntityId, wordListCreateObject).map(new Func1, Long>() { @Override - public Integer call(ServiceResponse response) { + public Long call(ServiceResponse response) { return response.body(); } }); } /** - * Adds a list to an existing closed list. + * Adds a sublist to an existing list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param clEntityId The closed list entity extractor ID. + * @param clEntityId The list entity extractor ID. * @param wordListCreateObject Words list. * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the Integer object + * @return the observable to the Long object */ - public Observable> addSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject) { + public Observable> addSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -5508,11 +5839,11 @@ public Observable> addSubListWithServiceResponseAsync(U Validator.validate(wordListCreateObject); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.addSubList(appId, versionId, clEntityId, wordListCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { + .flatMap(new Func1, Observable>>() { @Override - public Observable> call(Response response) { + public Observable> call(Response response) { try { - ServiceResponse clientResponse = addSubListDelegate(response); + ServiceResponse clientResponse = addSubListDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -5521,16 +5852,16 @@ public Observable> call(Response response }); } - private ServiceResponse addSubListDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) + private ServiceResponse addSubListDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) .build(response); } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5545,7 +5876,7 @@ public List addCustomPrebuiltDomain(UUID appId, String versionId, AddCusto } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5559,7 +5890,7 @@ public ServiceFuture> addCustomPrebuiltDomainAsync(UUID appId, String } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5577,7 +5908,7 @@ public List call(ServiceResponse> response) { } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5601,7 +5932,7 @@ public Observable>> addCustomPrebuiltDomainWithServic } /** - * Adds a customizable prebuilt domain along with all of its models to this application. + * Adds a customizable prebuilt domain along with all of its intent and entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5700,11 +6031,11 @@ public List call(ServiceResponse> response) { } /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -5715,11 +6046,11 @@ public UUID addCustomPrebuiltIntent(UUID appId, String versionId, PrebuiltDomain } /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain to which this model belongs. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -5729,11 +6060,11 @@ public ServiceFuture addCustomPrebuiltIntentAsync(UUID appId, String versi } /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -5747,11 +6078,11 @@ public UUID call(ServiceResponse response) { } /** - * Adds a custom prebuilt intent model to the application. + * Adds a customizable prebuilt intent model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt intent and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the customizable prebuilt intent and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -5792,7 +6123,7 @@ private ServiceResponse addCustomPrebuiltIntentDelegate(Response listCustomPrebuiltIntents(UUID appId, String versi } /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5819,7 +6150,7 @@ public ServiceFuture> listCustomPrebuiltIntentsAsync(UUID } /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5836,7 +6167,7 @@ public List call(ServiceResponse> respo } /** - * Gets custom prebuilt intents information of this application. + * Gets information about customizable prebuilt intents added to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5876,11 +6207,11 @@ private ServiceResponse> listCustomPrebuiltIntentsDelegat } /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -5891,11 +6222,11 @@ public UUID addCustomPrebuiltEntity(UUID appId, String versionId, PrebuiltDomain } /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this model belongs. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -5905,11 +6236,11 @@ public ServiceFuture addCustomPrebuiltEntityAsync(UUID appId, String versi } /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -5923,11 +6254,11 @@ public UUID call(ServiceResponse response) { } /** - * Adds a custom prebuilt entity model to the application. + * Adds a prebuilt entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param prebuiltDomainModelCreateObject A model object containing the name of the custom prebuilt entity and the name of the domain to which this model belongs. + * @param prebuiltDomainModelCreateObject A model object containing the name of the prebuilt entity and the name of the domain to which this model belongs. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -5968,7 +6299,7 @@ private ServiceResponse addCustomPrebuiltEntityDelegate(Response listCustomPrebuiltEntities(UUID appId, String versi } /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -5995,7 +6326,7 @@ public ServiceFuture> listCustomPrebuiltEntitiesAsync(UUID } /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6012,7 +6343,7 @@ public List call(ServiceResponse> respons } /** - * Gets all custom prebuilt entities information of this application. + * Gets all prebuilt entities used in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6052,7 +6383,7 @@ private ServiceResponse> listCustomPrebuiltEntitiesDelegat } /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -6066,7 +6397,7 @@ public List listCustomPrebuiltModels(UUID appId, String ver } /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -6079,7 +6410,7 @@ public ServiceFuture> listCustomPrebuiltModelsAsync(UU } /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -6096,7 +6427,7 @@ public List call(ServiceResponse> } /** - * Gets all custom prebuilt models information of this application. + * Gets all prebuilt intent and entity model information used in a version of this application. * * @param appId The application ID. * @param versionId The version ID. @@ -6136,7 +6467,7 @@ private ServiceResponse> listCustomPrebuiltModelsDeleg } /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6151,7 +6482,7 @@ public OperationStatus deleteCustomPrebuiltDomain(UUID appId, String versionId, } /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6165,7 +6496,7 @@ public ServiceFuture deleteCustomPrebuiltDomainAsync(UUID appId } /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6183,7 +6514,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a prebuilt domain's models from the application. + * Deletes a prebuilt domain's models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6227,7 +6558,106 @@ private ServiceResponse deleteCustomPrebuiltDomainDelegate(Resp } /** - * Gets information about the hierarchical entity child model. + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the UUID object if successful. + */ + public UUID addEntityChild(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject) { + return addEntityChildWithServiceResponseAsync(appId, versionId, entityId, childEntityModelCreateObject).toBlocking().single().body(); + } + + /** + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture addEntityChildAsync(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(addEntityChildWithServiceResponseAsync(appId, versionId, entityId, childEntityModelCreateObject), serviceCallback); + } + + /** + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UUID object + */ + public Observable addEntityChildAsync(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject) { + return addEntityChildWithServiceResponseAsync(appId, versionId, entityId, childEntityModelCreateObject).map(new Func1, UUID>() { + @Override + public UUID call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Creates a single child in an existing entity model hierarchy in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param entityId The entity extractor ID. + * @param childEntityModelCreateObject A model object containing the name of the new child model and its children. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the UUID object + */ + public Observable> addEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, ChildEntityModelCreateObject childEntityModelCreateObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (entityId == null) { + throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); + } + if (childEntityModelCreateObject == null) { + throw new IllegalArgumentException("Parameter childEntityModelCreateObject is required and cannot be null."); + } + Validator.validate(childEntityModelCreateObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.addEntityChild(appId, versionId, entityId, childEntityModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = addEntityChildDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse addEntityChildDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Gets information about the child's model contained in an hierarchical entity child model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6243,7 +6673,7 @@ public HierarchicalChildEntity getHierarchicalEntityChild(UUID appId, String ver } /** - * Gets information about the hierarchical entity child model. + * Gets information about the child's model contained in an hierarchical entity child model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6258,7 +6688,7 @@ public ServiceFuture getHierarchicalEntityChildAsync(UU } /** - * Gets information about the hierarchical entity child model. + * Gets information about the child's model contained in an hierarchical entity child model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6277,7 +6707,7 @@ public HierarchicalChildEntity call(ServiceResponse res } /** - * Gets information about the hierarchical entity child model. + * Gets information about the child's model contained in an hierarchical entity child model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6326,7 +6756,7 @@ private ServiceResponse getHierarchicalEntityChildDeleg /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6343,7 +6773,7 @@ public OperationStatus updateHierarchicalEntityChild(UUID appId, String versionI } /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6359,7 +6789,7 @@ public ServiceFuture updateHierarchicalEntityChildAsync(UUID ap } /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6379,7 +6809,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6411,7 +6841,7 @@ public Observable> updateHierarchicalEntityChil } /** - * Renames a single child in an existing hierarchical entity model. + * Renames a single child in an existing hierarchical entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6532,7 +6962,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6548,7 +6978,7 @@ public OperationStatus deleteHierarchicalEntityChild(UUID appId, String versionI } /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6563,7 +6993,7 @@ public ServiceFuture deleteHierarchicalEntityChildAsync(UUID ap } /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6582,7 +7012,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a hierarchical entity extractor child from the application. + * Deletes a hierarchical entity extractor child in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6631,196 +7061,7 @@ private ServiceResponse deleteHierarchicalEntityChildDelegate(R /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @throws IllegalArgumentException thrown if parameters fail the validation - * @throws ErrorResponseException thrown if the request is rejected by server - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent - * @return the UUID object if successful. - */ - public UUID addHierarchicalEntityChild(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter) { - return addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, addHierarchicalEntityChildOptionalParameter).toBlocking().single().body(); - } - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @param serviceCallback the async ServiceCallback to handle successful and failed responses. - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the {@link ServiceFuture} object - */ - public ServiceFuture addHierarchicalEntityChildAsync(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, addHierarchicalEntityChildOptionalParameter), serviceCallback); - } - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable addHierarchicalEntityChildAsync(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter) { - return addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, addHierarchicalEntityChildOptionalParameter).map(new Func1, UUID>() { - @Override - public UUID call(ServiceResponse response) { - return response.body(); - } - }); - } - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param addHierarchicalEntityChildOptionalParameter the object representing the optional parameters to be set before calling this API - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable> addHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter) { - if (this.client.endpoint() == null) { - throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); - } - if (appId == null) { - throw new IllegalArgumentException("Parameter appId is required and cannot be null."); - } - if (versionId == null) { - throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); - } - if (hEntityId == null) { - throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); - } - final String name = addHierarchicalEntityChildOptionalParameter != null ? addHierarchicalEntityChildOptionalParameter.name() : null; - - return addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, name); - } - - /** - * Creates a single child in an existing hierarchical entity model. - * - * @param appId The application ID. - * @param versionId The version ID. - * @param hEntityId The hierarchical entity extractor ID. - * @param name the String value - * @throws IllegalArgumentException thrown if parameters fail the validation - * @return the observable to the UUID object - */ - public Observable> addHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, String name) { - if (this.client.endpoint() == null) { - throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); - } - if (appId == null) { - throw new IllegalArgumentException("Parameter appId is required and cannot be null."); - } - if (versionId == null) { - throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); - } - if (hEntityId == null) { - throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); - } - HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject = new HierarchicalChildModelCreateObject(); - hierarchicalChildModelCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.addHierarchicalEntityChild(appId, versionId, hEntityId, this.client.acceptLanguage(), hierarchicalChildModelCreateObject, parameterizedHost, this.client.userAgent()) - .flatMap(new Func1, Observable>>() { - @Override - public Observable> call(Response response) { - try { - ServiceResponse clientResponse = addHierarchicalEntityChildDelegate(response); - return Observable.just(clientResponse); - } catch (Throwable t) { - return Observable.error(t); - } - } - }); - } - - private ServiceResponse addHierarchicalEntityChildDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { - return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) - .register(201, new TypeToken() { }.getType()) - .registerError(ErrorResponseException.class) - .build(response); - } - - @Override - public ModelsAddHierarchicalEntityChildParameters addHierarchicalEntityChild() { - return new ModelsAddHierarchicalEntityChildParameters(this); - } - - /** - * Internal class implementing ModelsAddHierarchicalEntityChildDefinition. - */ - class ModelsAddHierarchicalEntityChildParameters implements ModelsAddHierarchicalEntityChildDefinition { - private ModelsImpl parent; - private UUID appId; - private String versionId; - private UUID hEntityId; - private String name; - - /** - * Constructor. - * @param parent the parent object. - */ - ModelsAddHierarchicalEntityChildParameters(ModelsImpl parent) { - this.parent = parent; - } - - @Override - public ModelsAddHierarchicalEntityChildParameters withAppId(UUID appId) { - this.appId = appId; - return this; - } - - @Override - public ModelsAddHierarchicalEntityChildParameters withVersionId(String versionId) { - this.versionId = versionId; - return this; - } - - @Override - public ModelsAddHierarchicalEntityChildParameters withHEntityId(UUID hEntityId) { - this.hEntityId = hEntityId; - return this; - } - - @Override - public ModelsAddHierarchicalEntityChildParameters withName(String name) { - this.name = name; - return this; - } - - @Override - public UUID execute() { - return addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, name).toBlocking().single().body(); - } - - @Override - public Observable executeAsync() { - return addHierarchicalEntityChildWithServiceResponseAsync(appId, versionId, hEntityId, name).map(new Func1, UUID>() { - @Override - public UUID call(ServiceResponse response) { - return response.body(); - } - }); - } - } - - - /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6836,7 +7077,7 @@ public UUID addCompositeEntityChild(UUID appId, String versionId, UUID cEntityId } /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6851,7 +7092,7 @@ public ServiceFuture addCompositeEntityChildAsync(UUID appId, String versi } /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6870,7 +7111,7 @@ public UUID call(ServiceResponse response) { } /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -6898,7 +7139,7 @@ public Observable> addCompositeEntityChildWithServiceRespo } /** - * Creates a single child in an existing composite entity model. + * Creates a single child in an existing composite entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7008,7 +7249,7 @@ public UUID call(ServiceResponse response) { } /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7024,7 +7265,7 @@ public OperationStatus deleteCompositeEntityChild(UUID appId, String versionId, } /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7039,7 +7280,7 @@ public ServiceFuture deleteCompositeEntityChildAsync(UUID appId } /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7058,7 +7299,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a composite entity extractor child from the application. + * Deletes a composite entity extractor child from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7107,45 +7348,45 @@ private ServiceResponse deleteCompositeEntityChildDelegate(Resp /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<RegexEntityExtractor> object if successful. */ - public List getRegexEntityInfos(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter) { - return getRegexEntityInfosWithServiceResponseAsync(appId, versionId, getRegexEntityInfosOptionalParameter).toBlocking().single().body(); + public List listRegexEntityInfos(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter) { + return listRegexEntityInfosWithServiceResponseAsync(appId, versionId, listRegexEntityInfosOptionalParameter).toBlocking().single().body(); } /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getRegexEntityInfosAsync(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getRegexEntityInfosWithServiceResponseAsync(appId, versionId, getRegexEntityInfosOptionalParameter), serviceCallback); + public ServiceFuture> listRegexEntityInfosAsync(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listRegexEntityInfosWithServiceResponseAsync(appId, versionId, listRegexEntityInfosOptionalParameter), serviceCallback); } /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listRegexEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<RegexEntityExtractor> object */ - public Observable> getRegexEntityInfosAsync(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter) { - return getRegexEntityInfosWithServiceResponseAsync(appId, versionId, getRegexEntityInfosOptionalParameter).map(new Func1>, List>() { + public Observable> listRegexEntityInfosAsync(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter) { + return listRegexEntityInfosWithServiceResponseAsync(appId, versionId, listRegexEntityInfosOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7154,15 +7395,15 @@ public List call(ServiceResponse>> getRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter) { + public Observable>> listRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, ListRegexEntityInfosOptionalParameter listRegexEntityInfosOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7172,14 +7413,14 @@ public Observable>> getRegexEntityInf if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - final Integer skip = getRegexEntityInfosOptionalParameter != null ? getRegexEntityInfosOptionalParameter.skip() : null; - final Integer take = getRegexEntityInfosOptionalParameter != null ? getRegexEntityInfosOptionalParameter.take() : null; + final Integer skip = listRegexEntityInfosOptionalParameter != null ? listRegexEntityInfosOptionalParameter.skip() : null; + final Integer take = listRegexEntityInfosOptionalParameter != null ? listRegexEntityInfosOptionalParameter.take() : null; - return getRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take); + return listRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take); } /** - * Gets information about the regex entity models. + * Gets information about the regular expression entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7188,7 +7429,7 @@ public Observable>> getRegexEntityInf * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<RegexEntityExtractor> object */ - public Observable>> getRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { + public Observable>> listRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7199,12 +7440,12 @@ public Observable>> getRegexEntityInf throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getRegexEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listRegexEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getRegexEntityInfosDelegate(response); + ServiceResponse> clientResponse = listRegexEntityInfosDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7213,7 +7454,7 @@ public Observable>> call(Response> getRegexEntityInfosDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listRegexEntityInfosDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -7221,14 +7462,14 @@ private ServiceResponse> getRegexEntityInfosDelegate( } @Override - public ModelsGetRegexEntityInfosParameters getRegexEntityInfos() { - return new ModelsGetRegexEntityInfosParameters(this); + public ModelsListRegexEntityInfosParameters listRegexEntityInfos() { + return new ModelsListRegexEntityInfosParameters(this); } /** - * Internal class implementing ModelsGetRegexEntityInfosDefinition. + * Internal class implementing ModelsListRegexEntityInfosDefinition. */ - class ModelsGetRegexEntityInfosParameters implements ModelsGetRegexEntityInfosDefinition { + class ModelsListRegexEntityInfosParameters implements ModelsListRegexEntityInfosDefinition { private ModelsImpl parent; private UUID appId; private String versionId; @@ -7239,42 +7480,42 @@ class ModelsGetRegexEntityInfosParameters implements ModelsGetRegexEntityInfosDe * Constructor. * @param parent the parent object. */ - ModelsGetRegexEntityInfosParameters(ModelsImpl parent) { + ModelsListRegexEntityInfosParameters(ModelsImpl parent) { this.parent = parent; } @Override - public ModelsGetRegexEntityInfosParameters withAppId(UUID appId) { + public ModelsListRegexEntityInfosParameters withAppId(UUID appId) { this.appId = appId; return this; } @Override - public ModelsGetRegexEntityInfosParameters withVersionId(String versionId) { + public ModelsListRegexEntityInfosParameters withVersionId(String versionId) { this.versionId = versionId; return this; } @Override - public ModelsGetRegexEntityInfosParameters withSkip(Integer skip) { + public ModelsListRegexEntityInfosParameters withSkip(Integer skip) { this.skip = skip; return this; } @Override - public ModelsGetRegexEntityInfosParameters withTake(Integer take) { + public ModelsListRegexEntityInfosParameters withTake(Integer take) { this.take = take; return this; } @Override public List execute() { - return getRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); + return listRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { + return listRegexEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7284,11 +7525,11 @@ public List call(ServiceResponse createRegexEntityModelAsync(UUID appId, String versio } /** - * Adds a regex entity model to the application version. + * Adds a regular expression entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regex entity extractor. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regular expression entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -7331,11 +7572,11 @@ public UUID call(ServiceResponse response) { } /** - * Adds a regex entity model to the application version. + * Adds a regular expression entity model to a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regex entity extractor. + * @param regexEntityExtractorCreateObj A model object containing the name and regex pattern for the new regular expression entity extractor. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ @@ -7377,45 +7618,45 @@ private ServiceResponse createRegexEntityModelDelegate(Response getPatternAnyEntityInfos(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter) { - return getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, getPatternAnyEntityInfosOptionalParameter).toBlocking().single().body(); + public List listPatternAnyEntityInfos(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter) { + return listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, listPatternAnyEntityInfosOptionalParameter).toBlocking().single().body(); } /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getPatternAnyEntityInfosAsync(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, getPatternAnyEntityInfosOptionalParameter), serviceCallback); + public ServiceFuture> listPatternAnyEntityInfosAsync(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, listPatternAnyEntityInfosOptionalParameter), serviceCallback); } /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternAnyEntityInfosOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternAnyEntityExtractor> object */ - public Observable> getPatternAnyEntityInfosAsync(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter) { - return getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, getPatternAnyEntityInfosOptionalParameter).map(new Func1>, List>() { + public Observable> listPatternAnyEntityInfosAsync(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter) { + return listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, listPatternAnyEntityInfosOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7424,15 +7665,15 @@ public List call(ServiceResponse>> getPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter) { + public Observable>> listPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, ListPatternAnyEntityInfosOptionalParameter listPatternAnyEntityInfosOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7442,14 +7683,14 @@ public Observable>> getPatternAn if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - final Integer skip = getPatternAnyEntityInfosOptionalParameter != null ? getPatternAnyEntityInfosOptionalParameter.skip() : null; - final Integer take = getPatternAnyEntityInfosOptionalParameter != null ? getPatternAnyEntityInfosOptionalParameter.take() : null; + final Integer skip = listPatternAnyEntityInfosOptionalParameter != null ? listPatternAnyEntityInfosOptionalParameter.skip() : null; + final Integer take = listPatternAnyEntityInfosOptionalParameter != null ? listPatternAnyEntityInfosOptionalParameter.take() : null; - return getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take); + return listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take); } /** - * Get information about the Pattern.Any entity models. + * Get information about the Pattern.Any entity models in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7458,7 +7699,7 @@ public Observable>> getPatternAn * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternAnyEntityExtractor> object */ - public Observable>> getPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { + public Observable>> listPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7469,12 +7710,12 @@ public Observable>> getPatternAn throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getPatternAnyEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPatternAnyEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getPatternAnyEntityInfosDelegate(response); + ServiceResponse> clientResponse = listPatternAnyEntityInfosDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7483,7 +7724,7 @@ public Observable>> call(Respons }); } - private ServiceResponse> getPatternAnyEntityInfosDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listPatternAnyEntityInfosDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -7491,14 +7732,14 @@ private ServiceResponse> getPatternAnyEntityInfo } @Override - public ModelsGetPatternAnyEntityInfosParameters getPatternAnyEntityInfos() { - return new ModelsGetPatternAnyEntityInfosParameters(this); + public ModelsListPatternAnyEntityInfosParameters listPatternAnyEntityInfos() { + return new ModelsListPatternAnyEntityInfosParameters(this); } /** - * Internal class implementing ModelsGetPatternAnyEntityInfosDefinition. + * Internal class implementing ModelsListPatternAnyEntityInfosDefinition. */ - class ModelsGetPatternAnyEntityInfosParameters implements ModelsGetPatternAnyEntityInfosDefinition { + class ModelsListPatternAnyEntityInfosParameters implements ModelsListPatternAnyEntityInfosDefinition { private ModelsImpl parent; private UUID appId; private String versionId; @@ -7509,42 +7750,42 @@ class ModelsGetPatternAnyEntityInfosParameters implements ModelsGetPatternAnyEnt * Constructor. * @param parent the parent object. */ - ModelsGetPatternAnyEntityInfosParameters(ModelsImpl parent) { + ModelsListPatternAnyEntityInfosParameters(ModelsImpl parent) { this.parent = parent; } @Override - public ModelsGetPatternAnyEntityInfosParameters withAppId(UUID appId) { + public ModelsListPatternAnyEntityInfosParameters withAppId(UUID appId) { this.appId = appId; return this; } @Override - public ModelsGetPatternAnyEntityInfosParameters withVersionId(String versionId) { + public ModelsListPatternAnyEntityInfosParameters withVersionId(String versionId) { this.versionId = versionId; return this; } @Override - public ModelsGetPatternAnyEntityInfosParameters withSkip(Integer skip) { + public ModelsListPatternAnyEntityInfosParameters withSkip(Integer skip) { this.skip = skip; return this; } @Override - public ModelsGetPatternAnyEntityInfosParameters withTake(Integer take) { + public ModelsListPatternAnyEntityInfosParameters withTake(Integer take) { this.take = take; return this; } @Override public List execute() { - return getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); + return listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { + return listPatternAnyEntityInfosWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7554,7 +7795,7 @@ public List call(ServiceResponse createPatternAnyEntityModelAsync(UUID appId, String v } /** - * Adds a pattern.any entity extractor to the application. + * Adds a pattern.any entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7601,7 +7842,7 @@ public UUID call(ServiceResponse response) { } /** - * Adds a pattern.any entity extractor to the application. + * Adds a pattern.any entity extractor to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7646,7 +7887,7 @@ private ServiceResponse createPatternAnyEntityModelDelegate(Response createPatternAnyEntityModelDelegate(Response getEntityRoles(UUID appId, String versionId, UUID entityId) { - return getEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listEntityRoles(UUID appId, String versionId, UUID entityId) { + return listEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for an entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7670,12 +7911,12 @@ public List getEntityRoles(UUID appId, String versionId, UUID entity * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for an entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7683,8 +7924,8 @@ public ServiceFuture> getEntityRolesAsync(UUID appId, String ve * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7693,7 +7934,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for an entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7701,7 +7942,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7715,12 +7956,12 @@ public Observable>> getEntityRolesWithServiceRe throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getEntityRolesDelegate(response); + ServiceResponse> clientResponse = listEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -7729,7 +7970,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -7738,7 +7979,7 @@ private ServiceResponse> getEntityRolesDelegate(Response createEntityRoleAsync(UUID appId, String versionId, U } /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7788,7 +8029,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7816,7 +8057,7 @@ public Observable> createEntityRoleWithServiceResponseAsyn } /** - * Create an entity role for an entity in the application. + * Create an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7926,7 +8167,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7936,12 +8177,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId) { - return getPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId) { + return listPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7950,12 +8191,12 @@ public List getPrebuiltEntityRoles(UUID appId, String versionId, UUI * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7963,8 +8204,8 @@ public ServiceFuture> getPrebuiltEntityRolesAsync(UUID appId, S * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -7973,7 +8214,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get a prebuilt entity's roles in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -7981,7 +8222,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -7995,12 +8236,12 @@ public Observable>> getPrebuiltEntityRolesWithS throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getPrebuiltEntityRolesDelegate(response); + ServiceResponse> clientResponse = listPrebuiltEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -8009,7 +8250,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getPrebuiltEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listPrebuiltEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -8018,7 +8259,7 @@ private ServiceResponse> getPrebuiltEntityRolesDelegate(Respons /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8034,7 +8275,7 @@ public UUID createPrebuiltEntityRole(UUID appId, String versionId, UUID entityId } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8049,7 +8290,7 @@ public ServiceFuture createPrebuiltEntityRoleAsync(UUID appId, String vers } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8068,7 +8309,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8096,7 +8337,7 @@ public Observable> createPrebuiltEntityRoleWithServiceResp } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8206,7 +8447,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8216,12 +8457,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getClosedListEntityRoles(UUID appId, String versionId, UUID entityId) { - return getClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listClosedListEntityRoles(UUID appId, String versionId, UUID entityId) { + return listClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8230,12 +8471,12 @@ public List getClosedListEntityRoles(UUID appId, String versionId, U * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8243,8 +8484,8 @@ public ServiceFuture> getClosedListEntityRolesAsync(UUID appId, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listClosedListEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listClosedListEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -8253,7 +8494,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8261,7 +8502,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getClosedListEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listClosedListEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -8275,12 +8516,12 @@ public Observable>> getClosedListEntityRolesWit throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getClosedListEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listClosedListEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getClosedListEntityRolesDelegate(response); + ServiceResponse> clientResponse = listClosedListEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -8289,7 +8530,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getClosedListEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listClosedListEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -8298,7 +8539,7 @@ private ServiceResponse> getClosedListEntityRolesDelegate(Respo /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8314,7 +8555,7 @@ public UUID createClosedListEntityRole(UUID appId, String versionId, UUID entity } /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8329,7 +8570,7 @@ public ServiceFuture createClosedListEntityRoleAsync(UUID appId, String ve } /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8348,7 +8589,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8376,7 +8617,7 @@ public Observable> createClosedListEntityRoleWithServiceRe } /** - * Create an entity role for an entity in the application. + * Create a role for a list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8486,7 +8727,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8496,12 +8737,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getRegexEntityRoles(UUID appId, String versionId, UUID entityId) { - return getRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listRegexEntityRoles(UUID appId, String versionId, UUID entityId) { + return listRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8510,12 +8751,12 @@ public List getRegexEntityRoles(UUID appId, String versionId, UUID e * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8523,8 +8764,8 @@ public ServiceFuture> getRegexEntityRolesAsync(UUID appId, Stri * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listRegexEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listRegexEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -8533,7 +8774,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8541,7 +8782,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getRegexEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listRegexEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -8555,12 +8796,12 @@ public Observable>> getRegexEntityRolesWithServ throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getRegexEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listRegexEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getRegexEntityRolesDelegate(response); + ServiceResponse> clientResponse = listRegexEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -8569,7 +8810,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getRegexEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listRegexEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -8578,7 +8819,7 @@ private ServiceResponse> getRegexEntityRolesDelegate(Response createRegexEntityRoleAsync(UUID appId, String version } /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8628,7 +8869,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8656,7 +8897,7 @@ public Observable> createRegexEntityRoleWithServiceRespons } /** - * Create an entity role for an entity in the application. + * Create a role for an regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8766,7 +9007,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8776,12 +9017,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getCompositeEntityRoles(UUID appId, String versionId, UUID cEntityId) { - return getCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId).toBlocking().single().body(); + public List listCompositeEntityRoles(UUID appId, String versionId, UUID cEntityId) { + return listCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8790,12 +9031,12 @@ public List getCompositeEntityRoles(UUID appId, String versionId, UU * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId), serviceCallback); + public ServiceFuture> listCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8803,8 +9044,8 @@ public ServiceFuture> getCompositeEntityRolesAsync(UUID appId, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId) { - return getCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId).map(new Func1>, List>() { + public Observable> listCompositeEntityRolesAsync(UUID appId, String versionId, UUID cEntityId) { + return listCompositeEntityRolesWithServiceResponseAsync(appId, versionId, cEntityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -8813,7 +9054,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8821,7 +9062,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getCompositeEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId) { + public Observable>> listCompositeEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -8835,12 +9076,12 @@ public Observable>> getCompositeEntityRolesWith throw new IllegalArgumentException("Parameter cEntityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getCompositeEntityRoles(appId, versionId, cEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCompositeEntityRoles(appId, versionId, cEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getCompositeEntityRolesDelegate(response); + ServiceResponse> clientResponse = listCompositeEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -8849,7 +9090,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getCompositeEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listCompositeEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -8858,7 +9099,7 @@ private ServiceResponse> getCompositeEntityRolesDelegate(Respon /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8874,7 +9115,7 @@ public UUID createCompositeEntityRole(UUID appId, String versionId, UUID cEntity } /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8889,7 +9130,7 @@ public ServiceFuture createCompositeEntityRoleAsync(UUID appId, String ver } /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8908,7 +9149,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -8936,7 +9177,7 @@ public Observable> createCompositeEntityRoleWithServiceRes } /** - * Create an entity role for an entity in the application. + * Create a role for a composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9046,7 +9287,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9056,12 +9297,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getPatternAnyEntityRoles(UUID appId, String versionId, UUID entityId) { - return getPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listPatternAnyEntityRoles(UUID appId, String versionId, UUID entityId) { + return listPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9070,12 +9311,12 @@ public List getPatternAnyEntityRoles(UUID appId, String versionId, U * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9083,8 +9324,8 @@ public ServiceFuture> getPatternAnyEntityRolesAsync(UUID appId, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listPatternAnyEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listPatternAnyEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -9093,7 +9334,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9101,7 +9342,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getPatternAnyEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listPatternAnyEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -9115,12 +9356,12 @@ public Observable>> getPatternAnyEntityRolesWit throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getPatternAnyEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPatternAnyEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getPatternAnyEntityRolesDelegate(response); + ServiceResponse> clientResponse = listPatternAnyEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -9129,7 +9370,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getPatternAnyEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listPatternAnyEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -9138,7 +9379,7 @@ private ServiceResponse> getPatternAnyEntityRolesDelegate(Respo /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9154,7 +9395,7 @@ public UUID createPatternAnyEntityRole(UUID appId, String versionId, UUID entity } /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9169,7 +9410,7 @@ public ServiceFuture createPatternAnyEntityRoleAsync(UUID appId, String ve } /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9188,7 +9429,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9216,7 +9457,7 @@ public Observable> createPatternAnyEntityRoleWithServiceRe } /** - * Create an entity role for an entity in the application. + * Create a role for an Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9326,7 +9567,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9336,12 +9577,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getHierarchicalEntityRoles(UUID appId, String versionId, UUID hEntityId) { - return getHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId).toBlocking().single().body(); + public List listHierarchicalEntityRoles(UUID appId, String versionId, UUID hEntityId) { + return listHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9350,12 +9591,12 @@ public List getHierarchicalEntityRoles(UUID appId, String versionId, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId), serviceCallback); + public ServiceFuture> listHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9363,8 +9604,8 @@ public ServiceFuture> getHierarchicalEntityRolesAsync(UUID appI * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId) { - return getHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId).map(new Func1>, List>() { + public Observable> listHierarchicalEntityRolesAsync(UUID appId, String versionId, UUID hEntityId) { + return listHierarchicalEntityRolesWithServiceResponseAsync(appId, versionId, hEntityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -9373,7 +9614,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9381,7 +9622,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getHierarchicalEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId) { + public Observable>> listHierarchicalEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -9395,12 +9636,12 @@ public Observable>> getHierarchicalEntityRolesW throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getHierarchicalEntityRoles(appId, versionId, hEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listHierarchicalEntityRoles(appId, versionId, hEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getHierarchicalEntityRolesDelegate(response); + ServiceResponse> clientResponse = listHierarchicalEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -9409,7 +9650,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getHierarchicalEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listHierarchicalEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -9418,7 +9659,7 @@ private ServiceResponse> getHierarchicalEntityRolesDelegate(Res /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9434,7 +9675,7 @@ public UUID createHierarchicalEntityRole(UUID appId, String versionId, UUID hEnt } /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9449,7 +9690,7 @@ public ServiceFuture createHierarchicalEntityRoleAsync(UUID appId, String } /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9468,7 +9709,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9496,7 +9737,7 @@ public Observable> createHierarchicalEntityRoleWithService } /** - * Create an entity role for an entity in the application. + * Create a role for an hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9606,7 +9847,7 @@ public UUID call(ServiceResponse response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9616,12 +9857,12 @@ public UUID call(ServiceResponse response) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityRole> object if successful. */ - public List getCustomPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId) { - return getCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); + public List listCustomPrebuiltEntityRoles(UUID appId, String versionId, UUID entityId) { + return listCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).toBlocking().single().body(); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9630,12 +9871,12 @@ public List getCustomPrebuiltEntityRoles(UUID appId, String versionI * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); + public ServiceFuture> listCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId), serviceCallback); } /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9643,8 +9884,8 @@ public ServiceFuture> getCustomPrebuiltEntityRolesAsync(UUID ap * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable> getCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId) { - return getCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { + public Observable> listCustomPrebuiltEntityRolesAsync(UUID appId, String versionId, UUID entityId) { + return listCustomPrebuiltEntityRolesWithServiceResponseAsync(appId, versionId, entityId).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -9653,7 +9894,7 @@ public List call(ServiceResponse> response) { } /** - * Get All Entity Roles for a given entity. + * Get all roles for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9661,7 +9902,7 @@ public List call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityRole> object */ - public Observable>> getCustomPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { + public Observable>> listCustomPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -9675,12 +9916,12 @@ public Observable>> getCustomPrebuiltEntityRole throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getCustomPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCustomPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getCustomPrebuiltEntityRolesDelegate(response); + ServiceResponse> clientResponse = listCustomPrebuiltEntityRolesDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -9689,7 +9930,7 @@ public Observable>> call(Response }); } - private ServiceResponse> getCustomPrebuiltEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listCustomPrebuiltEntityRolesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -9698,7 +9939,7 @@ private ServiceResponse> getCustomPrebuiltEntityRolesDelegate(R /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9714,7 +9955,7 @@ public UUID createCustomPrebuiltEntityRole(UUID appId, String versionId, UUID en } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9729,7 +9970,7 @@ public ServiceFuture createCustomPrebuiltEntityRoleAsync(UUID appId, Strin } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9748,7 +9989,7 @@ public UUID call(ServiceResponse response) { } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9776,7 +10017,7 @@ public Observable> createCustomPrebuiltEntityRoleWithServi } /** - * Create an entity role for an entity in the application. + * Create a role for a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9886,7 +10127,7 @@ public UUID call(ServiceResponse response) { } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9901,7 +10142,7 @@ public List getExplicitList(UUID appId, String versionId, UUID } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9915,7 +10156,7 @@ public ServiceFuture> getExplicitListAsync(UUID appId, St } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9933,7 +10174,7 @@ public List call(ServiceResponse> respo } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9978,7 +10219,7 @@ private ServiceResponse> getExplicitListDelegate(Response /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -9994,7 +10235,7 @@ public int addExplicitListItem(UUID appId, String versionId, UUID entityId, AddE } /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10009,7 +10250,7 @@ public ServiceFuture addExplicitListItemAsync(UUID appId, String versio } /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10028,7 +10269,7 @@ public Integer call(ServiceResponse response) { } /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10056,7 +10297,7 @@ public Observable> addExplicitListItemWithServiceRespon } /** - * Add a new item to the explicit list for the Pattern.Any entity. + * Add a new exception to the explicit list for the Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10166,11 +10407,11 @@ public Integer call(ServiceResponse response) { } /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -10181,11 +10422,11 @@ public RegexEntityExtractor getRegexEntityEntityInfo(UUID appId, String versionI } /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -10195,11 +10436,11 @@ public ServiceFuture getRegexEntityEntityInfoAsync(UUID ap } /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RegexEntityExtractor object */ @@ -10213,11 +10454,11 @@ public RegexEntityExtractor call(ServiceResponse response) } /** - * Gets information of a regex entity model. + * Gets information about a regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity model ID. + * @param regexEntityId The regular expression entity model ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the RegexEntityExtractor object */ @@ -10257,11 +10498,11 @@ private ServiceResponse getRegexEntityEntityInfoDelegate(R } /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server @@ -10273,11 +10514,11 @@ public OperationStatus updateRegexEntityModel(UUID appId, String versionId, UUID } /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation @@ -10288,11 +10529,11 @@ public ServiceFuture updateRegexEntityModelAsync(UUID appId, St } /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -10307,11 +10548,11 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the regex entity model . + * Updates the regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param regexEntityUpdateObject An object containing the new entity name and regex pattern. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object @@ -10356,11 +10597,11 @@ private ServiceResponse updateRegexEntityModelDelegate(Response } /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws ErrorResponseException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent @@ -10371,11 +10612,11 @@ public OperationStatus deleteRegexEntityModel(UUID appId, String versionId, UUID } /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object @@ -10385,11 +10626,11 @@ public ServiceFuture deleteRegexEntityModelAsync(UUID appId, St } /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -10403,11 +10644,11 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a regex entity model from the application. + * Deletes a regular expression entity from a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param regexEntityId The regex entity extractor ID. + * @param regexEntityId The regular expression entity extractor ID. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ @@ -10447,7 +10688,7 @@ private ServiceResponse deleteRegexEntityModelDelegate(Response } /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10462,7 +10703,7 @@ public PatternAnyEntityExtractor getPatternAnyEntityInfo(UUID appId, String vers } /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10476,7 +10717,7 @@ public ServiceFuture getPatternAnyEntityInfoAsync(UUI } /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10494,7 +10735,7 @@ public PatternAnyEntityExtractor call(ServiceResponse } /** - * Gets information about the application version's Pattern.Any model. + * Gets information about the Pattern.Any model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10538,7 +10779,7 @@ private ServiceResponse getPatternAnyEntityInfoDelega } /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10554,7 +10795,7 @@ public OperationStatus updatePatternAnyEntityModel(UUID appId, String versionId, } /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10569,7 +10810,7 @@ public ServiceFuture updatePatternAnyEntityModelAsync(UUID appI } /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10588,7 +10829,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates the name and explicit list of a Pattern.Any entity model. + * Updates the name and explicit (exception) list of a Pattern.Any entity model in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10637,7 +10878,7 @@ private ServiceResponse updatePatternAnyEntityModelDelegate(Res } /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10652,7 +10893,7 @@ public OperationStatus deletePatternAnyEntityModel(UUID appId, String versionId, } /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10666,7 +10907,7 @@ public ServiceFuture deletePatternAnyEntityModelAsync(UUID appI } /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10684,7 +10925,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes a Pattern.Any entity extractor from the application. + * Deletes a Pattern.Any entity extractor from a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10728,7 +10969,7 @@ private ServiceResponse deletePatternAnyEntityModelDelegate(Res } /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10744,7 +10985,7 @@ public EntityRole getEntityRole(UUID appId, String versionId, UUID entityId, UUI } /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10759,7 +11000,7 @@ public ServiceFuture getEntityRoleAsync(UUID appId, String versionId } /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10778,7 +11019,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10827,7 +11068,7 @@ private ServiceResponse getEntityRoleDelegate(Response /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10844,7 +11085,7 @@ public OperationStatus updateEntityRole(UUID appId, String versionId, UUID entit } /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10860,7 +11101,7 @@ public ServiceFuture updateEntityRoleAsync(UUID appId, String v } /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10880,7 +11121,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -10912,7 +11153,7 @@ public Observable> updateEntityRoleWithServiceR } /** - * Update an entity role for a given entity. + * Update a role for a given entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11033,7 +11274,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11049,7 +11290,7 @@ public OperationStatus deleteEntityRole(UUID appId, String versionId, UUID entit } /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11064,7 +11305,7 @@ public ServiceFuture deleteEntityRoleAsync(UUID appId, String v } /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11083,7 +11324,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete an entity role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11131,7 +11372,7 @@ private ServiceResponse deleteEntityRoleDelegate(Response getPrebuiltEntityRoleAsync(UUID appId, String v } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11181,7 +11422,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11230,7 +11471,7 @@ private ServiceResponse getPrebuiltEntityRoleDelegate(Response updatePrebuiltEntityRoleAsync(UUID appId, } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11283,7 +11524,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11315,7 +11556,7 @@ public Observable> updatePrebuiltEntityRoleWith } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11436,7 +11677,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11452,7 +11693,7 @@ public OperationStatus deletePrebuiltEntityRole(UUID appId, String versionId, UU } /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11467,7 +11708,7 @@ public ServiceFuture deletePrebuiltEntityRoleAsync(UUID appId, } /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11486,7 +11727,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role in a prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11534,7 +11775,7 @@ private ServiceResponse deletePrebuiltEntityRoleDelegate(Respon } /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11550,7 +11791,7 @@ public EntityRole getClosedListEntityRole(UUID appId, String versionId, UUID ent } /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11565,7 +11806,7 @@ public ServiceFuture getClosedListEntityRoleAsync(UUID appId, String } /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11584,7 +11825,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11633,7 +11874,7 @@ private ServiceResponse getClosedListEntityRoleDelegate(Response updateClosedListEntityRoleAsync(UUID appId } /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11686,7 +11927,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11718,7 +11959,7 @@ public Observable> updateClosedListEntityRoleWi } /** - * Update an entity role for a given entity. + * Update a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11839,7 +12080,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11855,7 +12096,7 @@ public OperationStatus deleteClosedListEntityRole(UUID appId, String versionId, } /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11870,7 +12111,7 @@ public ServiceFuture deleteClosedListEntityRoleAsync(UUID appId } /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11889,7 +12130,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given list entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11937,7 +12178,7 @@ private ServiceResponse deleteClosedListEntityRoleDelegate(Resp } /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11953,7 +12194,7 @@ public EntityRole getRegexEntityRole(UUID appId, String versionId, UUID entityId } /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11968,7 +12209,7 @@ public ServiceFuture getRegexEntityRoleAsync(UUID appId, String vers } /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -11987,7 +12228,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12036,7 +12277,7 @@ private ServiceResponse getRegexEntityRoleDelegate(Response updateRegexEntityRoleAsync(UUID appId, Str } /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12089,7 +12330,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12121,7 +12362,7 @@ public Observable> updateRegexEntityRoleWithSer } /** - * Update an entity role for a given entity. + * Update a role for a given regular expression entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12242,7 +12483,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12258,7 +12499,7 @@ public OperationStatus deleteRegexEntityRole(UUID appId, String versionId, UUID } /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12273,7 +12514,7 @@ public ServiceFuture deleteRegexEntityRoleAsync(UUID appId, Str } /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12292,7 +12533,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given regular expression in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12340,7 +12581,7 @@ private ServiceResponse deleteRegexEntityRoleDelegate(Response< } /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12356,7 +12597,7 @@ public EntityRole getCompositeEntityRole(UUID appId, String versionId, UUID cEnt } /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12371,7 +12612,7 @@ public ServiceFuture getCompositeEntityRoleAsync(UUID appId, String } /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12390,7 +12631,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12439,7 +12680,7 @@ private ServiceResponse getCompositeEntityRoleDelegate(Response updateCompositeEntityRoleAsync(UUID appId, } /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12492,7 +12733,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12524,7 +12765,7 @@ public Observable> updateCompositeEntityRoleWit } /** - * Update an entity role for a given entity. + * Update a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12645,7 +12886,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12661,7 +12902,7 @@ public OperationStatus deleteCompositeEntityRole(UUID appId, String versionId, U } /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12676,7 +12917,7 @@ public ServiceFuture deleteCompositeEntityRoleAsync(UUID appId, } /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12695,7 +12936,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given composite entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12743,7 +12984,7 @@ private ServiceResponse deleteCompositeEntityRoleDelegate(Respo } /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12759,7 +13000,7 @@ public EntityRole getPatternAnyEntityRole(UUID appId, String versionId, UUID ent } /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12774,7 +13015,7 @@ public ServiceFuture getPatternAnyEntityRoleAsync(UUID appId, String } /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12793,7 +13034,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12842,7 +13083,7 @@ private ServiceResponse getPatternAnyEntityRoleDelegate(Response updatePatternAnyEntityRoleAsync(UUID appId } /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12895,7 +13136,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -12927,7 +13168,7 @@ public Observable> updatePatternAnyEntityRoleWi } /** - * Update an entity role for a given entity. + * Update a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13048,7 +13289,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13064,7 +13305,7 @@ public OperationStatus deletePatternAnyEntityRole(UUID appId, String versionId, } /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13079,7 +13320,7 @@ public ServiceFuture deletePatternAnyEntityRoleAsync(UUID appId } /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13098,7 +13339,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13146,7 +13387,7 @@ private ServiceResponse deletePatternAnyEntityRoleDelegate(Resp } /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13162,7 +13403,7 @@ public EntityRole getHierarchicalEntityRole(UUID appId, String versionId, UUID h } /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13177,7 +13418,7 @@ public ServiceFuture getHierarchicalEntityRoleAsync(UUID appId, Stri } /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13196,7 +13437,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13245,7 +13486,7 @@ private ServiceResponse getHierarchicalEntityRoleDelegate(Response updateHierarchicalEntityRoleAsync(UUID app } /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13298,7 +13539,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13330,7 +13571,7 @@ public Observable> updateHierarchicalEntityRole } /** - * Update an entity role for a given entity. + * Update a role for a given hierarchical entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13451,7 +13692,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13467,7 +13708,7 @@ public OperationStatus deleteHierarchicalEntityRole(UUID appId, String versionId } /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13482,7 +13723,7 @@ public ServiceFuture deleteHierarchicalEntityRoleAsync(UUID app } /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13501,7 +13742,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given hierarchical role in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13549,7 +13790,7 @@ private ServiceResponse deleteHierarchicalEntityRoleDelegate(Re } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13565,7 +13806,7 @@ public EntityRole getCustomEntityRole(UUID appId, String versionId, UUID entityI } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13580,7 +13821,7 @@ public ServiceFuture getCustomEntityRoleAsync(UUID appId, String ver } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13599,7 +13840,7 @@ public EntityRole call(ServiceResponse response) { } /** - * Get one entity role for a given entity. + * Get one role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13648,7 +13889,7 @@ private ServiceResponse getCustomEntityRoleDelegate(Response updateCustomPrebuiltEntityRoleAsync(UUID a } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13701,7 +13942,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13733,7 +13974,7 @@ public Observable> updateCustomPrebuiltEntityRo } /** - * Update an entity role for a given entity. + * Update a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13854,7 +14095,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13870,7 +14111,7 @@ public OperationStatus deleteCustomEntityRole(UUID appId, String versionId, UUID } /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13885,7 +14126,7 @@ public ServiceFuture deleteCustomEntityRoleAsync(UUID appId, St } /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13904,7 +14145,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete an entity role. + * Delete a role for a given prebuilt entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13952,7 +14193,7 @@ private ServiceResponse deleteCustomEntityRoleDelegate(Response } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13968,7 +14209,7 @@ public ExplicitListItem getExplicitListItem(UUID appId, String versionId, UUID e } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -13983,7 +14224,7 @@ public ServiceFuture getExplicitListItemAsync(UUID appId, Stri } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14002,7 +14243,7 @@ public ExplicitListItem call(ServiceResponse response) { } /** - * Get the explicit list of the pattern.any entity. + * Get the explicit (exception) list of the pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14048,7 +14289,7 @@ private ServiceResponse getExplicitListItemDelegate(Response updateExplicitListItemAsync(UUID appId, St } /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14101,7 +14342,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14130,7 +14371,7 @@ public Observable> updateExplicitListItemWithSe } /** - * Updates an explicit list item for a Pattern.Any entity. + * Updates an explicit (exception) list item for a Pattern.Any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14248,7 +14489,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14264,7 +14505,7 @@ public OperationStatus deleteExplicitListItem(UUID appId, String versionId, UUID } /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14279,7 +14520,7 @@ public ServiceFuture deleteExplicitListItemAsync(UUID appId, St } /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -14298,7 +14539,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Delete the explicit list item from the Pattern.any explicit list. + * Delete an item from the explicit (exception) list for a Pattern.any entity in a version of the application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java index c953014f0950..2a17ed7d8eca 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java @@ -8,8 +8,8 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetPatternsOptionalParameter; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetIntentPatternsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListPatternsOptionalParameter; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListIntentPatternsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns; import com.google.common.base.Joiner; @@ -70,9 +70,9 @@ interface PatternsService { @POST("apps/{appId}/versions/{versionId}/patternrule") Observable> addPattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PatternRuleCreateObject pattern, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns getPatterns" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns listPatterns" }) @GET("apps/{appId}/versions/{versionId}/patternrules") - Observable> getPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns updatePatterns" }) @PUT("apps/{appId}/versions/{versionId}/patternrules") @@ -94,14 +94,14 @@ interface PatternsService { @HTTP(path = "apps/{appId}/versions/{versionId}/patternrules/{patternId}", method = "DELETE", hasBody = true) Observable> deletePattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("patternId") UUID patternId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); - @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns getIntentPatterns" }) + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns listIntentPatterns" }) @GET("apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules") - Observable> getIntentPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listIntentPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); } /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -116,7 +116,7 @@ public PatternRuleInfo addPattern(UUID appId, String versionId, PatternRuleCreat } /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -130,7 +130,7 @@ public ServiceFuture addPatternAsync(UUID appId, String version } /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -148,7 +148,7 @@ public PatternRuleInfo call(ServiceResponse response) { } /** - * Adds one pattern to the specified application. + * Adds a pattern to a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -194,45 +194,45 @@ private ServiceResponse addPatternDelegate(Response getPatterns(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter) { - return getPatternsWithServiceResponseAsync(appId, versionId, getPatternsOptionalParameter).toBlocking().single().body(); + public List listPatterns(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter) { + return listPatternsWithServiceResponseAsync(appId, versionId, listPatternsOptionalParameter).toBlocking().single().body(); } /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getPatternsAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getPatternsWithServiceResponseAsync(appId, versionId, getPatternsOptionalParameter), serviceCallback); + public ServiceFuture> listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listPatternsWithServiceResponseAsync(appId, versionId, listPatternsOptionalParameter), serviceCallback); } /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable> getPatternsAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter) { - return getPatternsWithServiceResponseAsync(appId, versionId, getPatternsOptionalParameter).map(new Func1>, List>() { + public Observable> listPatternsAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter) { + return listPatternsWithServiceResponseAsync(appId, versionId, listPatternsOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -241,15 +241,15 @@ public List call(ServiceResponse> respons } /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. - * @param getPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable>> getPatternsWithServiceResponseAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter) { + public Observable>> listPatternsWithServiceResponseAsync(UUID appId, String versionId, ListPatternsOptionalParameter listPatternsOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -259,14 +259,14 @@ public Observable>> getPatternsWithService if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - final Integer skip = getPatternsOptionalParameter != null ? getPatternsOptionalParameter.skip() : null; - final Integer take = getPatternsOptionalParameter != null ? getPatternsOptionalParameter.take() : null; + final Integer skip = listPatternsOptionalParameter != null ? listPatternsOptionalParameter.skip() : null; + final Integer take = listPatternsOptionalParameter != null ? listPatternsOptionalParameter.take() : null; - return getPatternsWithServiceResponseAsync(appId, versionId, skip, take); + return listPatternsWithServiceResponseAsync(appId, versionId, skip, take); } /** - * Returns an application version's patterns. + * Gets patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -275,7 +275,7 @@ public Observable>> getPatternsWithService * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable>> getPatternsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { + public Observable>> listPatternsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -286,12 +286,12 @@ public Observable>> getPatternsWithService throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getPatterns(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPatterns(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getPatternsDelegate(response); + ServiceResponse> clientResponse = listPatternsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -300,7 +300,7 @@ public Observable>> call(Response> getPatternsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listPatternsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -308,14 +308,14 @@ private ServiceResponse> getPatternsDelegate(Response execute() { - return getPatternsWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); + return listPatternsWithServiceResponseAsync(appId, versionId, skip, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getPatternsWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { + return listPatternsWithServiceResponseAsync(appId, versionId, skip, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -371,7 +371,7 @@ public List call(ServiceResponse> respons } /** - * Updates patterns. + * Updates patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -386,7 +386,7 @@ public List updatePatterns(UUID appId, String versionId, List

> updatePatternsAsync(UUID appId, Stri } /** - * Updates patterns. + * Updates patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -418,7 +418,7 @@ public List call(ServiceResponse> respons } /** - * Updates patterns. + * Updates patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -463,7 +463,7 @@ private ServiceResponse> updatePatternsDelegate(Response batchAddPatterns(UUID appId, String versionId, List } /** - * Adds a batch of patterns to the specified application. + * Adds a batch of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -492,7 +492,7 @@ public ServiceFuture> batchAddPatternsAsync(UUID appId, St } /** - * Adds a batch of patterns to the specified application. + * Adds a batch of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -510,7 +510,7 @@ public List call(ServiceResponse> respons } /** - * Adds a batch of patterns to the specified application. + * Adds a batch of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -555,7 +555,7 @@ private ServiceResponse> batchAddPatternsDelegate(Response } /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -570,7 +570,7 @@ public OperationStatus deletePatterns(UUID appId, String versionId, List p } /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -584,7 +584,7 @@ public ServiceFuture deletePatternsAsync(UUID appId, String ver } /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -602,7 +602,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes the patterns with the specified IDs. + * Deletes a list of patterns in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -647,7 +647,7 @@ private ServiceResponse deletePatternsDelegate(Response updatePatternAsync(UUID appId, String vers } /** - * Updates a pattern. + * Updates a pattern in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -697,7 +697,7 @@ public PatternRuleInfo call(ServiceResponse response) { } /** - * Updates a pattern. + * Updates a pattern in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -746,7 +746,7 @@ private ServiceResponse updatePatternDelegate(Response deletePatternAsync(UUID appId, String vers } /** - * Deletes the pattern with the specified ID. + * Deletes the pattern with the specified ID from a version of the application.. * * @param appId The application ID. * @param versionId The version ID. @@ -793,7 +793,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deletes the pattern with the specified ID. + * Deletes the pattern with the specified ID from a version of the application.. * * @param appId The application ID. * @param versionId The version ID. @@ -838,48 +838,48 @@ private ServiceResponse deletePatternDelegate(Response getIntentPatterns(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter) { - return getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, getIntentPatternsOptionalParameter).toBlocking().single().body(); + public List listIntentPatterns(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter) { + return listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, listIntentPatternsOptionalParameter).toBlocking().single().body(); } /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> getIntentPatternsAsync(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter, final ServiceCallback> serviceCallback) { - return ServiceFuture.fromResponse(getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, getIntentPatternsOptionalParameter), serviceCallback); + public ServiceFuture> listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, listIntentPatternsOptionalParameter), serviceCallback); } /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable> getIntentPatternsAsync(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter) { - return getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, getIntentPatternsOptionalParameter).map(new Func1>, List>() { + public Observable> listIntentPatternsAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter) { + return listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, listIntentPatternsOptionalParameter).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); @@ -888,16 +888,16 @@ public List call(ServiceResponse> respons } /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. * @param intentId The intent classifier ID. - * @param getIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API + * @param listIntentPatternsOptionalParameter the object representing the optional parameters to be set before calling this API * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable>> getIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter) { + public Observable>> listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, ListIntentPatternsOptionalParameter listIntentPatternsOptionalParameter) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -910,14 +910,14 @@ public Observable>> getIntentPatternsWithS if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - final Integer skip = getIntentPatternsOptionalParameter != null ? getIntentPatternsOptionalParameter.skip() : null; - final Integer take = getIntentPatternsOptionalParameter != null ? getIntentPatternsOptionalParameter.take() : null; + final Integer skip = listIntentPatternsOptionalParameter != null ? listIntentPatternsOptionalParameter.skip() : null; + final Integer take = listIntentPatternsOptionalParameter != null ? listIntentPatternsOptionalParameter.take() : null; - return getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take); + return listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take); } /** - * Returns patterns to be retrieved for the specific intent. + * Returns patterns for the specific intent in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -927,7 +927,7 @@ public Observable>> getIntentPatternsWithS * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<PatternRuleInfo> object */ - public Observable>> getIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer skip, Integer take) { + public Observable>> listIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer skip, Integer take) { if (this.client.endpoint() == null) { throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); } @@ -941,12 +941,12 @@ public Observable>> getIntentPatternsWithS throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); - return service.getIntentPatterns(appId, versionId, intentId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listIntentPatterns(appId, versionId, intentId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { try { - ServiceResponse> clientResponse = getIntentPatternsDelegate(response); + ServiceResponse> clientResponse = listIntentPatternsDelegate(response); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); @@ -955,7 +955,7 @@ public Observable>> call(Response> getIntentPatternsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listIntentPatternsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -963,14 +963,14 @@ private ServiceResponse> getIntentPatternsDelegate(Respons } @Override - public PatternsGetIntentPatternsParameters getIntentPatterns() { - return new PatternsGetIntentPatternsParameters(this); + public PatternsListIntentPatternsParameters listIntentPatterns() { + return new PatternsListIntentPatternsParameters(this); } /** - * Internal class implementing PatternsGetIntentPatternsDefinition. + * Internal class implementing PatternsListIntentPatternsDefinition. */ - class PatternsGetIntentPatternsParameters implements PatternsGetIntentPatternsDefinition { + class PatternsListIntentPatternsParameters implements PatternsListIntentPatternsDefinition { private PatternsImpl parent; private UUID appId; private String versionId; @@ -982,48 +982,48 @@ class PatternsGetIntentPatternsParameters implements PatternsGetIntentPatternsDe * Constructor. * @param parent the parent object. */ - PatternsGetIntentPatternsParameters(PatternsImpl parent) { + PatternsListIntentPatternsParameters(PatternsImpl parent) { this.parent = parent; } @Override - public PatternsGetIntentPatternsParameters withAppId(UUID appId) { + public PatternsListIntentPatternsParameters withAppId(UUID appId) { this.appId = appId; return this; } @Override - public PatternsGetIntentPatternsParameters withVersionId(String versionId) { + public PatternsListIntentPatternsParameters withVersionId(String versionId) { this.versionId = versionId; return this; } @Override - public PatternsGetIntentPatternsParameters withIntentId(UUID intentId) { + public PatternsListIntentPatternsParameters withIntentId(UUID intentId) { this.intentId = intentId; return this; } @Override - public PatternsGetIntentPatternsParameters withSkip(Integer skip) { + public PatternsListIntentPatternsParameters withSkip(Integer skip) { this.skip = skip; return this; } @Override - public PatternsGetIntentPatternsParameters withTake(Integer take) { + public PatternsListIntentPatternsParameters withTake(Integer take) { this.take = take; return this; } @Override public List execute() { - return getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take).toBlocking().single().body(); + return listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take).toBlocking().single().body(); } @Override public Observable> executeAsync() { - return getIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take).map(new Func1>, List>() { + return listIntentPatternsWithServiceResponseAsync(appId, versionId, intentId, skip, take).map(new Func1>, List>() { @Override public List call(ServiceResponse> response) { return response.body(); diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java index 3f2dd428d505..ab6b5936b570 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java @@ -469,7 +469,7 @@ public OperationStatus call(ServiceResponse response) { /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API @@ -483,7 +483,7 @@ public OperationStatus update(UUID appId, UpdatePermissionsOptionalParameter upd } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API @@ -496,7 +496,7 @@ public ServiceFuture updateAsync(UUID appId, UpdatePermissionsO } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API @@ -513,7 +513,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed. * * @param appId The application ID. * @param updateOptionalParameter the object representing the optional parameters to be set before calling this API @@ -533,7 +533,7 @@ public Observable> updateWithServiceResponseAsy } /** - * Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed. + * Replaces the current user access list with the new list sent in the body. If an empty list is sent, all access to other users will be removed. * * @param appId The application ID. * @param emails The email address of the users. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/SettingsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/SettingsImpl.java new file mode 100644 index 000000000000..2d359fa363a6 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/SettingsImpl.java @@ -0,0 +1,248 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation; + +import retrofit2.Retrofit; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.Settings; +import com.google.common.base.Joiner; +import com.google.common.reflect.TypeToken; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AppVersionSettingObject; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.OperationStatus; +import com.microsoft.rest.ServiceCallback; +import com.microsoft.rest.ServiceFuture; +import com.microsoft.rest.ServiceResponse; +import com.microsoft.rest.Validator; +import java.io.IOException; +import java.util.List; +import java.util.UUID; +import okhttp3.ResponseBody; +import retrofit2.http.Body; +import retrofit2.http.GET; +import retrofit2.http.Header; +import retrofit2.http.Headers; +import retrofit2.http.Path; +import retrofit2.http.PUT; +import retrofit2.Response; +import rx.functions.Func1; +import rx.Observable; + +/** + * An instance of this class provides access to all the operations defined + * in Settings. + */ +public class SettingsImpl implements Settings { + /** The Retrofit service to perform REST calls. */ + private SettingsService service; + /** The service client containing this operation class. */ + private LUISAuthoringClientImpl client; + + /** + * Initializes an instance of SettingsImpl. + * + * @param retrofit the Retrofit instance built from a Retrofit Builder. + * @param client the instance of the service client containing this operation class. + */ + public SettingsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { + this.service = retrofit.create(SettingsService.class); + this.client = client; + } + + /** + * The interface defining all the services for Settings to be + * used by Retrofit to perform actually REST calls. + */ + interface SettingsService { + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Settings list" }) + @GET("apps/{appId}/versions/{versionId}/settings") + Observable> list(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Settings update" }) + @PUT("apps/{appId}/versions/{versionId}/settings") + Observable> update(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List listOfAppVersionSettingObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + + } + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the List<AppVersionSettingObject> object if successful. + */ + public List list(UUID appId, String versionId) { + return listWithServiceResponseAsync(appId, versionId).toBlocking().single().body(); + } + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture> listAsync(UUID appId, String versionId, final ServiceCallback> serviceCallback) { + return ServiceFuture.fromResponse(listWithServiceResponseAsync(appId, versionId), serviceCallback); + } + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AppVersionSettingObject> object + */ + public Observable> listAsync(UUID appId, String versionId) { + return listWithServiceResponseAsync(appId, versionId).map(new Func1>, List>() { + @Override + public List call(ServiceResponse> response) { + return response.body(); + } + }); + } + + /** + * Gets the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the List<AppVersionSettingObject> object + */ + public Observable>> listWithServiceResponseAsync(UUID appId, String versionId) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.list(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>>() { + @Override + public Observable>> call(Response response) { + try { + ServiceResponse> clientResponse = listDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken>() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws ErrorResponseException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the OperationStatus object if successful. + */ + public OperationStatus update(UUID appId, String versionId, List listOfAppVersionSettingObject) { + return updateWithServiceResponseAsync(appId, versionId, listOfAppVersionSettingObject).toBlocking().single().body(); + } + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture updateAsync(UUID appId, String versionId, List listOfAppVersionSettingObject, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(updateWithServiceResponseAsync(appId, versionId, listOfAppVersionSettingObject), serviceCallback); + } + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable updateAsync(UUID appId, String versionId, List listOfAppVersionSettingObject) { + return updateWithServiceResponseAsync(appId, versionId, listOfAppVersionSettingObject).map(new Func1, OperationStatus>() { + @Override + public OperationStatus call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Updates the settings in a version of the application. + * + * @param appId The application ID. + * @param versionId The version ID. + * @param listOfAppVersionSettingObject A list of the updated application version settings. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the OperationStatus object + */ + public Observable> updateWithServiceResponseAsync(UUID appId, String versionId, List listOfAppVersionSettingObject) { + if (this.client.endpoint() == null) { + throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null."); + } + if (appId == null) { + throw new IllegalArgumentException("Parameter appId is required and cannot be null."); + } + if (versionId == null) { + throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); + } + if (listOfAppVersionSettingObject == null) { + throw new IllegalArgumentException("Parameter listOfAppVersionSettingObject is required and cannot be null."); + } + Validator.validate(listOfAppVersionSettingObject); + String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); + return service.update(appId, versionId, listOfAppVersionSettingObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = updateDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse updateDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(ErrorResponseException.class) + .build(response); + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java index 1b3b8e5b0b0b..75f64839b1be 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java @@ -104,7 +104,7 @@ interface VersionsService { /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -119,7 +119,7 @@ public String clone(UUID appId, String versionId, CloneOptionalParameter cloneOp } /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -133,7 +133,7 @@ public ServiceFuture cloneAsync(UUID appId, String versionId, CloneOptio } /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -151,7 +151,7 @@ public String call(ServiceResponse response) { } /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -175,7 +175,7 @@ public Observable> cloneWithServiceResponseAsync(UUID ap } /** - * Creates a new version using the current snapshot of the selected application version. + * Creates a new version from the selected version. * * @param appId The application ID. * @param versionId The version ID. @@ -193,11 +193,8 @@ public Observable> cloneWithServiceResponseAsync(UUID ap if (versionId == null) { throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } - TaskUpdateObject versionCloneObject = null; - if (version != null) { - versionCloneObject = new TaskUpdateObject(); - versionCloneObject.withVersion(version); - } + TaskUpdateObject versionCloneObject = new TaskUpdateObject(); + versionCloneObject.withVersion(version); String parameterizedHost = Joiner.on(", ").join("{Endpoint}", this.client.endpoint()); return service.clone(appId, versionId, this.client.acceptLanguage(), versionCloneObject, parameterizedHost, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @@ -278,7 +275,7 @@ public String call(ServiceResponse response) { /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API @@ -292,7 +289,7 @@ public List list(UUID appId, ListVersionsOptionalParameter listOpti } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API @@ -305,7 +302,7 @@ public ServiceFuture> listAsync(UUID appId, ListVersionsOption } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API @@ -322,7 +319,7 @@ public List call(ServiceResponse> response) { } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param listOptionalParameter the object representing the optional parameters to be set before calling this API @@ -343,7 +340,7 @@ public Observable>> listWithServiceResponseAsy } /** - * Gets the application versions info. + * Gets a list of versions for this application ID. * * @param appId The application ID. * @param skip The number of entries to skip. Default value is 0. @@ -437,7 +434,7 @@ public List call(ServiceResponse> response) { } /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -451,7 +448,7 @@ public VersionInfo get(UUID appId, String versionId) { } /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -464,7 +461,7 @@ public ServiceFuture getAsync(UUID appId, String versionId, final S } /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -481,7 +478,7 @@ public VersionInfo call(ServiceResponse response) { } /** - * Gets the version info. + * Gets the version information such as date created, last modified date, endpoint URL, count of intents and entities, training and publishing status. * * @param appId The application ID. * @param versionId The version ID. @@ -1031,7 +1028,7 @@ public String call(ServiceResponse response) { } /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1046,7 +1043,7 @@ public OperationStatus deleteUnlabelledUtterance(UUID appId, String versionId, S } /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1060,7 +1057,7 @@ public ServiceFuture deleteUnlabelledUtteranceAsync(UUID appId, } /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. @@ -1078,7 +1075,7 @@ public OperationStatus call(ServiceResponse response) { } /** - * Deleted an unlabelled utterance. + * Deleted an unlabelled utterance in a version of the application. * * @param appId The application ID. * @param versionId The version ID. diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/PatternCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AppVersionSettingObject.java similarity index 54% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/PatternCreateObject.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AppVersionSettingObject.java index 57ba524789ef..fa3adc430ada 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/PatternCreateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AppVersionSettingObject.java @@ -11,58 +11,58 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for creating a Pattern feature. + * Object model of an application version setting. */ -public class PatternCreateObject { +public class AppVersionSettingObject { /** - * The Regular Expression to match. + * The application version setting name. */ - @JsonProperty(value = "pattern") - private String pattern; + @JsonProperty(value = "name") + private String name; /** - * Name of the feature. + * The application version setting value. */ - @JsonProperty(value = "name") - private String name; + @JsonProperty(value = "value") + private String value; /** - * Get the pattern value. + * Get the name value. * - * @return the pattern value + * @return the name value */ - public String pattern() { - return this.pattern; + public String name() { + return this.name; } /** - * Set the pattern value. + * Set the name value. * - * @param pattern the pattern value to set - * @return the PatternCreateObject object itself. + * @param name the name value to set + * @return the AppVersionSettingObject object itself. */ - public PatternCreateObject withPattern(String pattern) { - this.pattern = pattern; + public AppVersionSettingObject withName(String name) { + this.name = name; return this; } /** - * Get the name value. + * Get the value value. * - * @return the name value + * @return the value value */ - public String name() { - return this.name; + public String value() { + return this.value; } /** - * Set the name value. + * Set the value value. * - * @param name the name value to set - * @return the PatternCreateObject object itself. + * @param value the value value to set + * @return the AppVersionSettingObject object itself. */ - public PatternCreateObject withName(String name) { - this.name = name; + public AppVersionSettingObject withValue(String value) { + this.value = value; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationInfoResponse.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationInfoResponse.java index d99adf621ce8..a21f5301be30 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationInfoResponse.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationInfoResponse.java @@ -34,19 +34,20 @@ public class ApplicationInfoResponse { private String description; /** - * The culture of the application. E.g.: en-us. + * The culture of the application. For example, "en-us". */ @JsonProperty(value = "culture") private String culture; /** - * Defines the scenario for the new application. Optional. E.g.: IoT. + * Defines the scenario for the new application. Optional. For example, + * IoT. */ @JsonProperty(value = "usageScenario") private String usageScenario; /** - * The domain for the new application. Optional. E.g.: Comics. + * The domain for the new application. Optional. For example, Comics. */ @JsonProperty(value = "domain") private String domain; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationPublishObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationPublishObject.java index 42c0cadfa8a0..a77d3a01919e 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationPublishObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationPublishObject.java @@ -27,12 +27,6 @@ public class ApplicationPublishObject { @JsonProperty(value = "isStaging") private Boolean isStaging; - /** - * The target region that the application is published to. - */ - @JsonProperty(value = "region") - private String region; - /** * Get the versionId value. * @@ -73,24 +67,4 @@ public ApplicationPublishObject withIsStaging(Boolean isStaging) { return this; } - /** - * Get the region value. - * - * @return the region value - */ - public String region() { - return this.region; - } - - /** - * Set the region value. - * - * @param region the region value to set - * @return the ApplicationPublishObject object itself. - */ - public ApplicationPublishObject withRegion(String region) { - this.region = region; - return this; - } - } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettingUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettingUpdateObject.java index 9c46abb73b40..748215be045a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettingUpdateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettingUpdateObject.java @@ -19,25 +19,25 @@ public class ApplicationSettingUpdateObject { * application's endpoint using their own keys. */ @JsonProperty(value = "public") - private boolean publicProperty; + private boolean isPublic; /** - * Get the publicProperty value. + * Get the isPublic value. * - * @return the publicProperty value + * @return the isPublic value */ - public boolean publicProperty() { - return this.publicProperty; + public boolean isPublic() { + return this.isPublic; } /** - * Set the publicProperty value. + * Set the isPublic value. * - * @param publicProperty the publicProperty value to set + * @param isPublic the isPublic value to set * @return the ApplicationSettingUpdateObject object itself. */ - public ApplicationSettingUpdateObject withPublicProperty(boolean publicProperty) { - this.publicProperty = publicProperty; + public ApplicationSettingUpdateObject withIsPublic(boolean isPublic) { + this.isPublic = isPublic; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettings.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettings.java index 1f2f2b2b3fea..e9b091d75919 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettings.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ApplicationSettings.java @@ -23,7 +23,7 @@ public class ApplicationSettings { /** * Setting your application as public allows other people to use your - * application's endpoint using their own keys. + * application's endpoint using their own keys for billing purposes. */ @JsonProperty(value = "public", required = true) private boolean isPublic; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddHierarchicalEntityChildOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AssignToAppOptionalParameter.java similarity index 52% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddHierarchicalEntityChildOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AssignToAppOptionalParameter.java index a29413102da2..0a897c13e56d 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddHierarchicalEntityChildOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AssignToAppOptionalParameter.java @@ -10,13 +10,13 @@ /** - * The AddHierarchicalEntityChildOptionalParameter model. + * The AssignToAppOptionalParameter model. */ -public class AddHierarchicalEntityChildOptionalParameter { +public class AssignToAppOptionalParameter { /** - * The name property. + * The Azure account information object. */ - private String name; + private AzureAccountInfoObject azureAccountInfoObject; /** * Gets or sets the preferred language for the response. @@ -24,22 +24,22 @@ public class AddHierarchicalEntityChildOptionalParameter { private String thisclientacceptLanguage; /** - * Get the name value. + * Get the azureAccountInfoObject value. * - * @return the name value + * @return the azureAccountInfoObject value */ - public String name() { - return this.name; + public AzureAccountInfoObject azureAccountInfoObject() { + return this.azureAccountInfoObject; } /** - * Set the name value. + * Set the azureAccountInfoObject value. * - * @param name the name value to set - * @return the AddHierarchicalEntityChildOptionalParameter object itself. + * @param azureAccountInfoObject the azureAccountInfoObject value to set + * @return the AssignToAppOptionalParameter object itself. */ - public AddHierarchicalEntityChildOptionalParameter withName(String name) { - this.name = name; + public AssignToAppOptionalParameter withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject) { + this.azureAccountInfoObject = azureAccountInfoObject; return this; } @@ -56,9 +56,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the AddHierarchicalEntityChildOptionalParameter object itself. + * @return the AssignToAppOptionalParameter object itself. */ - public AddHierarchicalEntityChildOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public AssignToAppOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureAccountInfoObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureAccountInfoObject.java new file mode 100644 index 000000000000..8286d16e5d37 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureAccountInfoObject.java @@ -0,0 +1,95 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Defines the Azure account information object. + */ +public class AzureAccountInfoObject { + /** + * The id for the Azure subscription. + */ + @JsonProperty(value = "azureSubscriptionId", required = true) + private String azureSubscriptionId; + + /** + * The Azure resource group name. + */ + @JsonProperty(value = "resourceGroup", required = true) + private String resourceGroup; + + /** + * The Azure account name. + */ + @JsonProperty(value = "accountName", required = true) + private String accountName; + + /** + * Get the azureSubscriptionId value. + * + * @return the azureSubscriptionId value + */ + public String azureSubscriptionId() { + return this.azureSubscriptionId; + } + + /** + * Set the azureSubscriptionId value. + * + * @param azureSubscriptionId the azureSubscriptionId value to set + * @return the AzureAccountInfoObject object itself. + */ + public AzureAccountInfoObject withAzureSubscriptionId(String azureSubscriptionId) { + this.azureSubscriptionId = azureSubscriptionId; + return this; + } + + /** + * Get the resourceGroup value. + * + * @return the resourceGroup value + */ + public String resourceGroup() { + return this.resourceGroup; + } + + /** + * Set the resourceGroup value. + * + * @param resourceGroup the resourceGroup value to set + * @return the AzureAccountInfoObject object itself. + */ + public AzureAccountInfoObject withResourceGroup(String resourceGroup) { + this.resourceGroup = resourceGroup; + return this; + } + + /** + * Get the accountName value. + * + * @return the accountName value + */ + public String accountName() { + return this.accountName; + } + + /** + * Set the accountName value. + * + * @param accountName the accountName value to set + * @return the AzureAccountInfoObject object itself. + */ + public AzureAccountInfoObject withAccountName(String accountName) { + this.accountName = accountName; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/BatchLabelExample.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/BatchLabelExample.java index eed091976322..1a9168f682de 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/BatchLabelExample.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/BatchLabelExample.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Response when adding a batch of labeled examples. + * Response when adding a batch of labeled example utterances. */ public class BatchLabelExample { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntity.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntity.java index 31ac717fda40..5c200608f34b 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntity.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntity.java @@ -9,6 +9,7 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; import java.util.UUID; +import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -27,6 +28,34 @@ public class ChildEntity { @JsonProperty(value = "name") private String name; + /** + * Instance of Model. + */ + @JsonProperty(value = "instanceOf") + private String instanceOfProperty; + + /** + * The type ID of the Entity Model. + */ + @JsonProperty(value = "typeId") + private Integer typeId; + + /** + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. + */ + @JsonProperty(value = "readableType") + private String readableType; + + /** + * List of children. + */ + @JsonProperty(value = "children") + private List children; + /** * Get the id value. * @@ -67,4 +96,84 @@ public ChildEntity withName(String name) { return this; } + /** + * Get the instanceOfProperty value. + * + * @return the instanceOfProperty value + */ + public String instanceOfProperty() { + return this.instanceOfProperty; + } + + /** + * Set the instanceOfProperty value. + * + * @param instanceOfProperty the instanceOfProperty value to set + * @return the ChildEntity object itself. + */ + public ChildEntity withInstanceOfProperty(String instanceOfProperty) { + this.instanceOfProperty = instanceOfProperty; + return this; + } + + /** + * Get the typeId value. + * + * @return the typeId value + */ + public Integer typeId() { + return this.typeId; + } + + /** + * Set the typeId value. + * + * @param typeId the typeId value to set + * @return the ChildEntity object itself. + */ + public ChildEntity withTypeId(Integer typeId) { + this.typeId = typeId; + return this; + } + + /** + * Get the readableType value. + * + * @return the readableType value + */ + public String readableType() { + return this.readableType; + } + + /** + * Set the readableType value. + * + * @param readableType the readableType value to set + * @return the ChildEntity object itself. + */ + public ChildEntity withReadableType(String readableType) { + this.readableType = readableType; + return this; + } + + /** + * Get the children value. + * + * @return the children value + */ + public List children() { + return this.children; + } + + /** + * Set the children value. + * + * @param children the children value to set + * @return the ChildEntity object itself. + */ + public ChildEntity withChildren(List children) { + this.children = children; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntityModelCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntityModelCreateObject.java new file mode 100644 index 000000000000..b13599b75952 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ChildEntityModelCreateObject.java @@ -0,0 +1,96 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * A child entity extractor create object. + */ +public class ChildEntityModelCreateObject { + /** + * Child entities. + */ + @JsonProperty(value = "children") + private List children; + + /** + * Entity name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The instance of model name. + */ + @JsonProperty(value = "instanceOf") + private String instanceOfProperty; + + /** + * Get the children value. + * + * @return the children value + */ + public List children() { + return this.children; + } + + /** + * Set the children value. + * + * @param children the children value to set + * @return the ChildEntityModelCreateObject object itself. + */ + public ChildEntityModelCreateObject withChildren(List children) { + this.children = children; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the ChildEntityModelCreateObject object itself. + */ + public ChildEntityModelCreateObject withName(String name) { + this.name = name; + return this; + } + + /** + * Get the instanceOfProperty value. + * + * @return the instanceOfProperty value + */ + public String instanceOfProperty() { + return this.instanceOfProperty; + } + + /** + * Set the instanceOfProperty value. + * + * @param instanceOfProperty the instanceOfProperty value to set + * @return the ChildEntityModelCreateObject object itself. + */ + public ChildEntityModelCreateObject withInstanceOfProperty(String instanceOfProperty) { + this.instanceOfProperty = instanceOfProperty; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedList.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedList.java index 9b1094a1462a..ed05a0028ad4 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedList.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedList.java @@ -12,17 +12,17 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Exported Model - A Closed List. + * Exported Model - A list entity. */ public class ClosedList { /** - * Name of the closed list feature. + * Name of the list entity. */ @JsonProperty(value = "name") private String name; /** - * Sublists for the feature. + * Sublists for the list entity. */ @JsonProperty(value = "subLists") private List subLists; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListEntityExtractor.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListEntityExtractor.java index c226eca7f480..f45498599886 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListEntityExtractor.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListEntityExtractor.java @@ -13,7 +13,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Closed List Entity Extractor. + * List Entity Extractor. */ public class ClosedListEntityExtractor { /** @@ -35,11 +35,11 @@ public class ClosedListEntityExtractor { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; @@ -51,7 +51,7 @@ public class ClosedListEntityExtractor { private List roles; /** - * List of sub-lists. + * List of sublists. */ @JsonProperty(value = "subLists") private List subLists; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelCreateObject.java index 0dad25c40899..f6de6bbafd18 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelCreateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelCreateObject.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for creating a closed list. + * Object model for creating a list entity. */ public class ClosedListModelCreateObject { /** @@ -22,7 +22,7 @@ public class ClosedListModelCreateObject { private List subLists; /** - * Name of the closed list feature. + * Name of the list entity. */ @JsonProperty(value = "name") private String name; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelPatchObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelPatchObject.java index e49ee066c1a2..38e6082fc30a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelPatchObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelPatchObject.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for adding a batch of sublists to an existing closedlist. + * Object model for adding a batch of sublists to an existing list entity. */ public class ClosedListModelPatchObject { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelUpdateObject.java index b56ac73d7b98..005240a30ce8 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelUpdateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ClosedListModelUpdateObject.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for updating a closed list. + * Object model for updating a list entity. */ public class ClosedListModelUpdateObject { /** @@ -22,7 +22,7 @@ public class ClosedListModelUpdateObject { private List subLists; /** - * The new name of the closed list feature. + * The new name of the list entity. */ @JsonProperty(value = "name") private String name; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityExtractor.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityExtractor.java index b23e8a13176e..9d75d38d0c5e 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityExtractor.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityExtractor.java @@ -35,11 +35,11 @@ public class CompositeEntityExtractor { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityModel.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityModel.java index f1e277139371..bec3784485d7 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityModel.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CompositeEntityModel.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A composite entity. + * A composite entity extractor. */ public class CompositeEntityModel { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CustomPrebuiltModel.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CustomPrebuiltModel.java index ae79574402b3..2e397ce25aea 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CustomPrebuiltModel.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/CustomPrebuiltModel.java @@ -35,11 +35,11 @@ public class CustomPrebuiltModel { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddEntityOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteAppsOptionalParameter.java similarity index 59% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddEntityOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteAppsOptionalParameter.java index 9a65a30a5030..637aa029deb7 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AddEntityOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteAppsOptionalParameter.java @@ -10,13 +10,13 @@ /** - * The AddEntityOptionalParameter model. + * The DeleteAppsOptionalParameter model. */ -public class AddEntityOptionalParameter { +public class DeleteAppsOptionalParameter { /** - * Name of the new entity extractor. + * A flag to indicate whether to force an operation. */ - private String name; + private Boolean force; /** * Gets or sets the preferred language for the response. @@ -24,22 +24,22 @@ public class AddEntityOptionalParameter { private String thisclientacceptLanguage; /** - * Get the name value. + * Get the force value. * - * @return the name value + * @return the force value */ - public String name() { - return this.name; + public Boolean force() { + return this.force; } /** - * Set the name value. + * Set the force value. * - * @param name the name value to set - * @return the AddEntityOptionalParameter object itself. + * @param force the force value to set + * @return the DeleteAppsOptionalParameter object itself. */ - public AddEntityOptionalParameter withName(String name) { - this.name = name; + public DeleteAppsOptionalParameter withForce(Boolean force) { + this.force = force; return this; } @@ -56,9 +56,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the AddEntityOptionalParameter object itself. + * @return the DeleteAppsOptionalParameter object itself. */ - public AddEntityOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public DeleteAppsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteIntentOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteIntentOptionalParameter.java index c0d0aa916d7c..e04cb2c21673 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteIntentOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/DeleteIntentOptionalParameter.java @@ -14,8 +14,8 @@ */ public class DeleteIntentOptionalParameter { /** - * Also delete the intent's utterances (true). Or move the utterances to - * the None intent (false - the default value). + * If true, deletes the intent's example utterances. If false, moves the + * example utterances to the None intent. The default value is false. */ private Boolean deleteUtterances; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EndpointInfo.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EndpointInfo.java index 9bbe5f020ddb..b35e2976be39 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EndpointInfo.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EndpointInfo.java @@ -51,6 +51,12 @@ public class EndpointInfo { @JsonProperty(value = "endpointRegion") private String endpointRegion; + /** + * Regions where publishing failed. + */ + @JsonProperty(value = "failedRegions") + private String failedRegions; + /** * Timestamp when was last published. */ @@ -177,6 +183,26 @@ public EndpointInfo withEndpointRegion(String endpointRegion) { return this; } + /** + * Get the failedRegions value. + * + * @return the failedRegions value + */ + public String failedRegions() { + return this.failedRegions; + } + + /** + * Set the failedRegions value. + * + * @param failedRegions the failedRegions value to set + * @return the EndpointInfo object itself. + */ + public EndpointInfo withFailedRegions(String failedRegions) { + this.failedRegions = failedRegions; + return this; + } + /** * Get the publishedDateTime value. * diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntitiesSuggestionExample.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntitiesSuggestionExample.java index 5449965eb5a9..26bfa6692ab3 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntitiesSuggestionExample.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntitiesSuggestionExample.java @@ -16,7 +16,7 @@ */ public class EntitiesSuggestionExample { /** - * The utterance. E.g.: what's the weather like in seattle?. + * The utterance. For example, "What's the weather like in seattle?". */ @JsonProperty(value = "text") private String text; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityExtractor.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityExtractor.java index 864cedaecb6c..5704e481a1b6 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityExtractor.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityExtractor.java @@ -35,11 +35,11 @@ public class EntityExtractor { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabel.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabel.java index 588d9cf38cfd..0306e6e3f98d 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabel.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabel.java @@ -8,6 +8,7 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; +import java.util.UUID; import com.fasterxml.jackson.annotation.JsonProperty; /** @@ -33,6 +34,18 @@ public class EntityLabel { @JsonProperty(value = "endTokenIndex", required = true) private int endTokenIndex; + /** + * The role of the predicted entity. + */ + @JsonProperty(value = "role") + private String role; + + /** + * The role id for the predicted entity. + */ + @JsonProperty(value = "roleId") + private UUID roleId; + /** * Get the entityName value. * @@ -93,4 +106,44 @@ public EntityLabel withEndTokenIndex(int endTokenIndex) { return this; } + /** + * Get the role value. + * + * @return the role value + */ + public String role() { + return this.role; + } + + /** + * Set the role value. + * + * @param role the role value to set + * @return the EntityLabel object itself. + */ + public EntityLabel withRole(String role) { + this.role = role; + return this; + } + + /** + * Get the roleId value. + * + * @return the roleId value + */ + public UUID roleId() { + return this.roleId; + } + + /** + * Set the roleId value. + * + * @param roleId the roleId value to set + * @return the EntityLabel object itself. + */ + public EntityLabel withRoleId(UUID roleId) { + this.roleId = roleId; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabelObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabelObject.java index be5fa31fa05e..53852d97ebb5 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabelObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityLabelObject.java @@ -33,6 +33,12 @@ public class EntityLabelObject { @JsonProperty(value = "endCharIndex", required = true) private int endCharIndex; + /** + * The role the entity plays in the utterance. + */ + @JsonProperty(value = "role") + private String role; + /** * Get the entityName value. * @@ -93,4 +99,24 @@ public EntityLabelObject withEndCharIndex(int endCharIndex) { return this; } + /** + * Get the role value. + * + * @return the role value + */ + public String role() { + return this.role; + } + + /** + * Set the role value. + * + * @param role the role value to set + * @return the EntityLabelObject object itself. + */ + public EntityLabelObject withRole(String role) { + this.role = role; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityModel.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelCreateObject.java similarity index 71% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityModel.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelCreateObject.java index 260cc2ebde2a..f25533e7c9d1 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityModel.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelCreateObject.java @@ -12,14 +12,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A Hierarchical Entity Extractor. + * An entity extractor create object. */ -public class HierarchicalEntityModel { +public class EntityModelCreateObject { /** * Child entities. */ @JsonProperty(value = "children") - private List children; + private List children; /** * Entity name. @@ -32,7 +32,7 @@ public class HierarchicalEntityModel { * * @return the children value */ - public List children() { + public List children() { return this.children; } @@ -40,9 +40,9 @@ public List children() { * Set the children value. * * @param children the children value to set - * @return the HierarchicalEntityModel object itself. + * @return the EntityModelCreateObject object itself. */ - public HierarchicalEntityModel withChildren(List children) { + public EntityModelCreateObject withChildren(List children) { this.children = children; return this; } @@ -60,9 +60,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the HierarchicalEntityModel object itself. + * @return the EntityModelCreateObject object itself. */ - public HierarchicalEntityModel withName(String name) { + public EntityModelCreateObject withName(String name) { this.name = name; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelUpdateObject.java new file mode 100644 index 000000000000..a31e2af143d7 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/EntityModelUpdateObject.java @@ -0,0 +1,69 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An entity extractor update object. + */ +public class EntityModelUpdateObject { + /** + * Entity name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The instance of model name. + */ + @JsonProperty(value = "instanceOf") + private String instanceOfProperty; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the EntityModelUpdateObject object itself. + */ + public EntityModelUpdateObject withName(String name) { + this.name = name; + return this; + } + + /** + * Get the instanceOfProperty value. + * + * @return the instanceOfProperty value + */ + public String instanceOfProperty() { + return this.instanceOfProperty; + } + + /** + * Set the instanceOfProperty value. + * + * @param instanceOfProperty the instanceOfProperty value to set + * @return the EntityModelUpdateObject object itself. + */ + public EntityModelUpdateObject withInstanceOfProperty(String instanceOfProperty) { + this.instanceOfProperty = instanceOfProperty; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExampleLabelObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExampleLabelObject.java index 0a11d7bfaae6..0c5874b57587 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExampleLabelObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExampleLabelObject.java @@ -12,23 +12,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * A labeled example. + * A labeled example utterance. */ public class ExampleLabelObject { /** - * The sample's utterance. + * The example utterance. */ @JsonProperty(value = "text") private String text; /** - * The idenfied entities within the utterance. + * The identified entities within the example utterance. */ @JsonProperty(value = "entityLabels") private List entityLabels; /** - * The idenfitied intent representing the utterance. + * The identified intent representing the example utterance. */ @JsonProperty(value = "intentName") private String intentName; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItem.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItem.java index 979694d30391..0885c1854df5 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItem.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItem.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Explicit list item. + * Explicit (exception) list item. */ public class ExplicitListItem { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemCreateObject.java index 4a9f7369c9da..4ea042aa93c8 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemCreateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemCreateObject.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for creating an explicit list item. + * Object model for creating an explicit (exception) list item. */ public class ExplicitListItemCreateObject { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemUpdateObject.java index 488055a51623..5a52d3a4c32f 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemUpdateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ExplicitListItemUpdateObject.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Model object for updating an explicit list item. + * Model object for updating an explicit (exception) list item. */ public class ExplicitListItemUpdateObject { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/FeatureInfoObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/FeatureInfoObject.java index 3f40a40c7118..97924a030c36 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/FeatureInfoObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/FeatureInfoObject.java @@ -32,6 +32,12 @@ public class FeatureInfoObject { @JsonProperty(value = "isActive") private Boolean isActive; + /** + * Indicates if the feature is enabled for all models in the application. + */ + @JsonProperty(value = "enabledForAllModels") + private Boolean enabledForAllModels; + /** * Get the id value. * @@ -92,4 +98,24 @@ public FeatureInfoObject withIsActive(Boolean isActive) { return this; } + /** + * Get the enabledForAllModels value. + * + * @return the enabledForAllModels value + */ + public Boolean enabledForAllModels() { + return this.enabledForAllModels; + } + + /** + * Set the enabledForAllModels value. + * + * @param enabledForAllModels the enabledForAllModels value to set + * @return the FeatureInfoObject object itself. + */ + public FeatureInfoObject withEnabledForAllModels(Boolean enabledForAllModels) { + this.enabledForAllModels = enabledForAllModels; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildEntity.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildEntity.java index 2ec24eae47e7..66268f368e28 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildEntity.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildEntity.java @@ -8,66 +8,9 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; -import com.fasterxml.jackson.annotation.JsonProperty; /** * A Hierarchical Child Entity. */ public class HierarchicalChildEntity extends ChildEntity { - /** - * The type ID of the Entity Model. - */ - @JsonProperty(value = "typeId") - private Integer typeId; - - /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. - */ - @JsonProperty(value = "readableType") - private String readableType; - - /** - * Get the typeId value. - * - * @return the typeId value - */ - public Integer typeId() { - return this.typeId; - } - - /** - * Set the typeId value. - * - * @param typeId the typeId value to set - * @return the HierarchicalChildEntity object itself. - */ - public HierarchicalChildEntity withTypeId(Integer typeId) { - this.typeId = typeId; - return this; - } - - /** - * Get the readableType value. - * - * @return the readableType value - */ - public String readableType() { - return this.readableType; - } - - /** - * Set the readableType value. - * - * @param readableType the readableType value to set - * @return the HierarchicalChildEntity object itself. - */ - public HierarchicalChildEntity withReadableType(String readableType) { - this.readableType = readableType; - return this; - } - } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildModelCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildModelCreateObject.java deleted file mode 100644 index 7bf499bcbe23..000000000000 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalChildModelCreateObject.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - */ - -package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; - -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The HierarchicalChildModelCreateObject model. - */ -public class HierarchicalChildModelCreateObject { - /** - * The name property. - */ - @JsonProperty(value = "name") - private String name; - - /** - * Get the name value. - * - * @return the name value - */ - public String name() { - return this.name; - } - - /** - * Set the name value. - * - * @param name the name value to set - * @return the HierarchicalChildModelCreateObject object itself. - */ - public HierarchicalChildModelCreateObject withName(String name) { - this.name = name; - return this; - } - -} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityExtractor.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityExtractor.java index e76d0a76f3c8..429c08dc2f05 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityExtractor.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalEntityExtractor.java @@ -35,11 +35,11 @@ public class HierarchicalEntityExtractor { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalModel.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalModel.java index fee35380525f..3696e70e033f 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalModel.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/HierarchicalModel.java @@ -25,13 +25,13 @@ public class HierarchicalModel { * The children property. */ @JsonProperty(value = "children") - private List children; + private List children; /** - * The inherits property. + * The features property. */ - @JsonProperty(value = "inherits") - private PrebuiltDomainObject inherits; + @JsonProperty(value = "features") + private List features; /** * The roles property. @@ -39,6 +39,12 @@ public class HierarchicalModel { @JsonProperty(value = "roles") private List roles; + /** + * The inherits property. + */ + @JsonProperty(value = "inherits") + private PrebuiltDomainObject inherits; + /** * Get the name value. * @@ -64,7 +70,7 @@ public HierarchicalModel withName(String name) { * * @return the children value */ - public List children() { + public List children() { return this.children; } @@ -74,28 +80,28 @@ public List children() { * @param children the children value to set * @return the HierarchicalModel object itself. */ - public HierarchicalModel withChildren(List children) { + public HierarchicalModel withChildren(List children) { this.children = children; return this; } /** - * Get the inherits value. + * Get the features value. * - * @return the inherits value + * @return the features value */ - public PrebuiltDomainObject inherits() { - return this.inherits; + public List features() { + return this.features; } /** - * Set the inherits value. + * Set the features value. * - * @param inherits the inherits value to set + * @param features the features value to set * @return the HierarchicalModel object itself. */ - public HierarchicalModel withInherits(PrebuiltDomainObject inherits) { - this.inherits = inherits; + public HierarchicalModel withFeatures(List features) { + this.features = features; return this; } @@ -119,4 +125,24 @@ public HierarchicalModel withRoles(List roles) { return this; } + /** + * Get the inherits value. + * + * @return the inherits value + */ + public PrebuiltDomainObject inherits() { + return this.inherits; + } + + /** + * Set the inherits value. + * + * @param inherits the inherits value to set + * @return the HierarchicalModel object itself. + */ + public HierarchicalModel withInherits(PrebuiltDomainObject inherits) { + this.inherits = inherits; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ImportMethodAppsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ImportMethodAppsOptionalParameter.java index 3e1f16b896e5..4f1e7f02b6db 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ImportMethodAppsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ImportMethodAppsOptionalParameter.java @@ -15,7 +15,8 @@ public class ImportMethodAppsOptionalParameter { /** * The application name to create. If not specified, the application name - * will be read from the imported object. + * will be read from the imported object. If the application name already + * exists, an error is returned. */ private String appName; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/IntentsSuggestionExample.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/IntentsSuggestionExample.java index d38de98d5fc0..a3f51faa04dd 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/IntentsSuggestionExample.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/IntentsSuggestionExample.java @@ -16,13 +16,13 @@ */ public class IntentsSuggestionExample { /** - * The utterance. E.g.: what's the weather like in seattle?. + * The utterance. For example, "What's the weather like in seattle?". */ @JsonProperty(value = "text") private String text; /** - * The utterance tokenized. + * The tokenized utterance. */ @JsonProperty(value = "tokenizedText") private List tokenizedText; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONEntity.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONEntity.java index d52e1673fe05..94f41e21444a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONEntity.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONEntity.java @@ -32,6 +32,12 @@ public class JSONEntity { @JsonProperty(value = "entity", required = true) private String entity; + /** + * The role the entity plays in the utterance. + */ + @JsonProperty(value = "role") + private String role; + /** * Get the startPos value. * @@ -92,4 +98,24 @@ public JSONEntity withEntity(String entity) { return this; } + /** + * Get the role value. + * + * @return the role value + */ + public String role() { + return this.role; + } + + /** + * Set the role value. + * + * @param role the role value to set + * @return the JSONEntity object itself. + */ + public JSONEntity withRole(String role) { + this.role = role; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONModelFeature.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONModelFeature.java index 397efdfc52e0..a00c367586f8 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONModelFeature.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JSONModelFeature.java @@ -33,21 +33,25 @@ public class JSONModelFeature { private String words; /** - * An exchangeable phrase list feature are serves as single feature to the - * LUIS underlying training algorithm. It is used as a lexicon lookup + * An interchangeable phrase list feature serves as a list of synonyms for + * training. A non-exchangeable phrase list serves as separate features for + * training. So, if your non-interchangeable phrase list contains 5 + * phrases, they will be mapped to 5 separate features. You can think of + * the non-interchangeable phrase list as an additional bag of words to add + * to LUIS existing vocabulary features. It is used as a lexicon lookup * feature where its value is 1 if the lexicon contains a given word or 0 - * if it doesn’t. Think of an exchangeable as a synonyms list. A - * non-exchangeable phrase list feature has all the phrases in the list - * serve as separate features to the underlying training algorithm. So, if - * you your phrase list feature contains 5 phrases, they will be mapped to - * 5 separate features. You can think of the non-exchangeable phrase list - * feature as an additional bag of words that you are willing to add to - * LUIS existing vocabulary features. Think of a non-exchangeable as set of - * different words. Default value is true. + * if it doesn’t. Default value is true. */ @JsonProperty(value = "mode") private Boolean mode; + /** + * Indicates if the Phraselist is enabled for all models in the + * application. + */ + @JsonProperty(value = "enabledForAllModels") + private Boolean enabledForAllModels; + /** * Get the activated value. * @@ -128,4 +132,24 @@ public JSONModelFeature withMode(Boolean mode) { return this; } + /** + * Get the enabledForAllModels value. + * + * @return the enabledForAllModels value + */ + public Boolean enabledForAllModels() { + return this.enabledForAllModels; + } + + /** + * Set the enabledForAllModels value. + * + * @param enabledForAllModels the enabledForAllModels value to set + * @return the JSONModelFeature object itself. + */ + public JSONModelFeature withEnabledForAllModels(Boolean enabledForAllModels) { + this.enabledForAllModels = enabledForAllModels; + return this; + } + } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonChild.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonChild.java new file mode 100644 index 000000000000..5efccd330946 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonChild.java @@ -0,0 +1,122 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The JsonChild model. + */ +public class JsonChild { + /** + * The name property. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The instanceOfProperty property. + */ + @JsonProperty(value = "instanceOf") + private String instanceOfProperty; + + /** + * The children property. + */ + @JsonProperty(value = "children") + private List children; + + /** + * The features property. + */ + @JsonProperty(value = "features") + private List features; + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the JsonChild object itself. + */ + public JsonChild withName(String name) { + this.name = name; + return this; + } + + /** + * Get the instanceOfProperty value. + * + * @return the instanceOfProperty value + */ + public String instanceOfProperty() { + return this.instanceOfProperty; + } + + /** + * Set the instanceOfProperty value. + * + * @param instanceOfProperty the instanceOfProperty value to set + * @return the JsonChild object itself. + */ + public JsonChild withInstanceOfProperty(String instanceOfProperty) { + this.instanceOfProperty = instanceOfProperty; + return this; + } + + /** + * Get the children value. + * + * @return the children value + */ + public List children() { + return this.children; + } + + /** + * Set the children value. + * + * @param children the children value to set + * @return the JsonChild object itself. + */ + public JsonChild withChildren(List children) { + this.children = children; + return this; + } + + /** + * Get the features value. + * + * @return the features value + */ + public List features() { + return this.features; + } + + /** + * Set the features value. + * + * @param features the features value to set + * @return the JsonChild object itself. + */ + public JsonChild withFeatures(List features) { + this.features = features; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonModelFeatureInformation.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonModelFeatureInformation.java new file mode 100644 index 000000000000..f749ce36184d --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/JsonModelFeatureInformation.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An object containing the model feature information either the model name or + * feature name. + */ +public class JsonModelFeatureInformation { + /** + * The name of the model used. + */ + @JsonProperty(value = "modelName") + private String modelName; + + /** + * The name of the feature used. + */ + @JsonProperty(value = "featureName") + private String featureName; + + /** + * Get the modelName value. + * + * @return the modelName value + */ + public String modelName() { + return this.modelName; + } + + /** + * Set the modelName value. + * + * @param modelName the modelName value to set + * @return the JsonModelFeatureInformation object itself. + */ + public JsonModelFeatureInformation withModelName(String modelName) { + this.modelName = modelName; + return this; + } + + /** + * Get the featureName value. + * + * @return the featureName value + */ + public String featureName() { + return this.featureName; + } + + /** + * Set the featureName value. + * + * @param featureName the featureName value to set + * @return the JsonModelFeatureInformation object itself. + */ + public JsonModelFeatureInformation withFeatureName(String featureName) { + this.featureName = featureName; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelExampleResponse.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelExampleResponse.java index eb53616ccad0..dc23f975aac4 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelExampleResponse.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelExampleResponse.java @@ -11,11 +11,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Response when adding a labeled example. + * Response when adding a labeled example utterance. */ public class LabelExampleResponse { /** - * The sample's utterance. + * The example utterance. */ @JsonProperty(value = "UtteranceText") private String utteranceText; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelTextObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelTextObject.java index 987e64a10d8e..cb8b61bbb582 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelTextObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabelTextObject.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * An object containing the example's text. + * An object containing the example utterance's text. */ public class LabelTextObject { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabeledUtterance.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabeledUtterance.java index 42ec6010b30c..8ec218d5b530 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabeledUtterance.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LabeledUtterance.java @@ -22,7 +22,7 @@ public class LabeledUtterance { private Integer id; /** - * The utterance. E.g.: what's the weather like in seattle?. + * The utterance. For example, "What's the weather like in seattle?". */ @JsonProperty(value = "text") private String text; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentSuggestionsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListEntitySuggestionsOptionalParameter.java similarity index 75% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentSuggestionsOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListEntitySuggestionsOptionalParameter.java index f81e655d0dc9..e8126e840eca 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentSuggestionsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListEntitySuggestionsOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetIntentSuggestionsOptionalParameter model. + * The ListEntitySuggestionsOptionalParameter model. */ -public class GetIntentSuggestionsOptionalParameter { +public class ListEntitySuggestionsOptionalParameter { /** * The number of entries to return. Maximum page size is 500. Default is * 100. @@ -37,9 +37,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetIntentSuggestionsOptionalParameter object itself. + * @return the ListEntitySuggestionsOptionalParameter object itself. */ - public GetIntentSuggestionsOptionalParameter withTake(Integer take) { + public ListEntitySuggestionsOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -57,9 +57,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetIntentSuggestionsOptionalParameter object itself. + * @return the ListEntitySuggestionsOptionalParameter object itself. */ - public GetIntentSuggestionsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListEntitySuggestionsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentPatternsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentPatternsOptionalParameter.java similarity index 75% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentPatternsOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentPatternsOptionalParameter.java index 1136d77f34e3..2f940ba54971 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetIntentPatternsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentPatternsOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetIntentPatternsOptionalParameter model. + * The ListIntentPatternsOptionalParameter model. */ -public class GetIntentPatternsOptionalParameter { +public class ListIntentPatternsOptionalParameter { /** * The number of entries to skip. Default value is 0. */ @@ -42,9 +42,9 @@ public Integer skip() { * Set the skip value. * * @param skip the skip value to set - * @return the GetIntentPatternsOptionalParameter object itself. + * @return the ListIntentPatternsOptionalParameter object itself. */ - public GetIntentPatternsOptionalParameter withSkip(Integer skip) { + public ListIntentPatternsOptionalParameter withSkip(Integer skip) { this.skip = skip; return this; } @@ -62,9 +62,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetIntentPatternsOptionalParameter object itself. + * @return the ListIntentPatternsOptionalParameter object itself. */ - public GetIntentPatternsOptionalParameter withTake(Integer take) { + public ListIntentPatternsOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -82,9 +82,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetIntentPatternsOptionalParameter object itself. + * @return the ListIntentPatternsOptionalParameter object itself. */ - public GetIntentPatternsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListIntentPatternsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetEntitySuggestionsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentSuggestionsOptionalParameter.java similarity index 75% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetEntitySuggestionsOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentSuggestionsOptionalParameter.java index 67b89ca2c328..5dd0e48b31b3 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetEntitySuggestionsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListIntentSuggestionsOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetEntitySuggestionsOptionalParameter model. + * The ListIntentSuggestionsOptionalParameter model. */ -public class GetEntitySuggestionsOptionalParameter { +public class ListIntentSuggestionsOptionalParameter { /** * The number of entries to return. Maximum page size is 500. Default is * 100. @@ -37,9 +37,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetEntitySuggestionsOptionalParameter object itself. + * @return the ListIntentSuggestionsOptionalParameter object itself. */ - public GetEntitySuggestionsOptionalParameter withTake(Integer take) { + public ListIntentSuggestionsOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -57,9 +57,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetEntitySuggestionsOptionalParameter object itself. + * @return the ListIntentSuggestionsOptionalParameter object itself. */ - public GetEntitySuggestionsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListIntentSuggestionsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternAnyEntityInfosOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternAnyEntityInfosOptionalParameter.java similarity index 73% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternAnyEntityInfosOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternAnyEntityInfosOptionalParameter.java index 12906e8a3b4e..a88a5f83a58a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternAnyEntityInfosOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternAnyEntityInfosOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetPatternAnyEntityInfosOptionalParameter model. + * The ListPatternAnyEntityInfosOptionalParameter model. */ -public class GetPatternAnyEntityInfosOptionalParameter { +public class ListPatternAnyEntityInfosOptionalParameter { /** * The number of entries to skip. Default value is 0. */ @@ -42,9 +42,9 @@ public Integer skip() { * Set the skip value. * * @param skip the skip value to set - * @return the GetPatternAnyEntityInfosOptionalParameter object itself. + * @return the ListPatternAnyEntityInfosOptionalParameter object itself. */ - public GetPatternAnyEntityInfosOptionalParameter withSkip(Integer skip) { + public ListPatternAnyEntityInfosOptionalParameter withSkip(Integer skip) { this.skip = skip; return this; } @@ -62,9 +62,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetPatternAnyEntityInfosOptionalParameter object itself. + * @return the ListPatternAnyEntityInfosOptionalParameter object itself. */ - public GetPatternAnyEntityInfosOptionalParameter withTake(Integer take) { + public ListPatternAnyEntityInfosOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -82,9 +82,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetPatternAnyEntityInfosOptionalParameter object itself. + * @return the ListPatternAnyEntityInfosOptionalParameter object itself. */ - public GetPatternAnyEntityInfosOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListPatternAnyEntityInfosOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternsOptionalParameter.java similarity index 76% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternsOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternsOptionalParameter.java index c65d9ac12893..6401778ea94d 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetPatternsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListPatternsOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetPatternsOptionalParameter model. + * The ListPatternsOptionalParameter model. */ -public class GetPatternsOptionalParameter { +public class ListPatternsOptionalParameter { /** * The number of entries to skip. Default value is 0. */ @@ -42,9 +42,9 @@ public Integer skip() { * Set the skip value. * * @param skip the skip value to set - * @return the GetPatternsOptionalParameter object itself. + * @return the ListPatternsOptionalParameter object itself. */ - public GetPatternsOptionalParameter withSkip(Integer skip) { + public ListPatternsOptionalParameter withSkip(Integer skip) { this.skip = skip; return this; } @@ -62,9 +62,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetPatternsOptionalParameter object itself. + * @return the ListPatternsOptionalParameter object itself. */ - public GetPatternsOptionalParameter withTake(Integer take) { + public ListPatternsOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -82,9 +82,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetPatternsOptionalParameter object itself. + * @return the ListPatternsOptionalParameter object itself. */ - public GetPatternsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListPatternsOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetRegexEntityInfosOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListRegexEntityInfosOptionalParameter.java similarity index 74% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetRegexEntityInfosOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListRegexEntityInfosOptionalParameter.java index 5d247d187d48..5737cb037e44 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/GetRegexEntityInfosOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ListRegexEntityInfosOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The GetRegexEntityInfosOptionalParameter model. + * The ListRegexEntityInfosOptionalParameter model. */ -public class GetRegexEntityInfosOptionalParameter { +public class ListRegexEntityInfosOptionalParameter { /** * The number of entries to skip. Default value is 0. */ @@ -42,9 +42,9 @@ public Integer skip() { * Set the skip value. * * @param skip the skip value to set - * @return the GetRegexEntityInfosOptionalParameter object itself. + * @return the ListRegexEntityInfosOptionalParameter object itself. */ - public GetRegexEntityInfosOptionalParameter withSkip(Integer skip) { + public ListRegexEntityInfosOptionalParameter withSkip(Integer skip) { this.skip = skip; return this; } @@ -62,9 +62,9 @@ public Integer take() { * Set the take value. * * @param take the take value to set - * @return the GetRegexEntityInfosOptionalParameter object itself. + * @return the ListRegexEntityInfosOptionalParameter object itself. */ - public GetRegexEntityInfosOptionalParameter withTake(Integer take) { + public ListRegexEntityInfosOptionalParameter withTake(Integer take) { this.take = take; return this; } @@ -82,9 +82,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the GetRegexEntityInfosOptionalParameter object itself. + * @return the ListRegexEntityInfosOptionalParameter object itself. */ - public GetRegexEntityInfosOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public ListRegexEntityInfosOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LuisApp.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LuisApp.java index a2e69cf98aa5..3a719499bc46 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LuisApp.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/LuisApp.java @@ -58,7 +58,7 @@ public class LuisApp { private List entities; /** - * List of closed lists. + * List of list entities. */ @JsonProperty(value = "closedLists") private List closedLists; @@ -69,6 +69,12 @@ public class LuisApp { @JsonProperty(value = "composites") private List composites; + /** + * List of hierarchical entities. + */ + @JsonProperty(value = "hierarchicals") + private List hierarchicals; + /** * List of Pattern.Any entities. */ @@ -96,8 +102,8 @@ public class LuisApp { /** * List of model features. */ - @JsonProperty(value = "model_features") - private List modelFeatures; + @JsonProperty(value = "phraselists") + private List phraselists; /** * List of patterns. @@ -106,7 +112,7 @@ public class LuisApp { private List patterns; /** - * List of sample utterances. + * List of example utterances. */ @JsonProperty(value = "utterances") private List utterances; @@ -291,6 +297,26 @@ public LuisApp withComposites(List composites) { return this; } + /** + * Get the hierarchicals value. + * + * @return the hierarchicals value + */ + public List hierarchicals() { + return this.hierarchicals; + } + + /** + * Set the hierarchicals value. + * + * @param hierarchicals the hierarchicals value to set + * @return the LuisApp object itself. + */ + public LuisApp withHierarchicals(List hierarchicals) { + this.hierarchicals = hierarchicals; + return this; + } + /** * Get the patternAnyEntities value. * @@ -372,22 +398,22 @@ public LuisApp withRegexFeatures(List regexFeatures) { } /** - * Get the modelFeatures value. + * Get the phraselists value. * - * @return the modelFeatures value + * @return the phraselists value */ - public List modelFeatures() { - return this.modelFeatures; + public List phraselists() { + return this.phraselists; } /** - * Set the modelFeatures value. + * Set the phraselists value. * - * @param modelFeatures the modelFeatures value to set + * @param phraselists the phraselists value to set * @return the LuisApp object itself. */ - public LuisApp withModelFeatures(List modelFeatures) { - this.modelFeatures = modelFeatures; + public LuisApp withPhraselists(List phraselists) { + this.phraselists = phraselists; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelFeatureInformation.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelFeatureInformation.java new file mode 100644 index 000000000000..89447db268aa --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelFeatureInformation.java @@ -0,0 +1,70 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * An object containing the model feature information either the model name or + * feature name. + */ +public class ModelFeatureInformation { + /** + * The name of the model used. + */ + @JsonProperty(value = "modelName") + private String modelName; + + /** + * The name of the feature used. + */ + @JsonProperty(value = "featureName") + private String featureName; + + /** + * Get the modelName value. + * + * @return the modelName value + */ + public String modelName() { + return this.modelName; + } + + /** + * Set the modelName value. + * + * @param modelName the modelName value to set + * @return the ModelFeatureInformation object itself. + */ + public ModelFeatureInformation withModelName(String modelName) { + this.modelName = modelName; + return this; + } + + /** + * Get the featureName value. + * + * @return the featureName value + */ + public String featureName() { + return this.featureName; + } + + /** + * Set the featureName value. + * + * @param featureName the featureName value to set + * @return the ModelFeatureInformation object itself. + */ + public ModelFeatureInformation withFeatureName(String featureName) { + this.featureName = featureName; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfo.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfo.java index 4ccaf2d9b8ff..97b77605e8a3 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfo.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfo.java @@ -34,11 +34,11 @@ public class ModelInfo { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfoResponse.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfoResponse.java index 8db181bc2e3d..ddb5a6685e0c 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfoResponse.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/ModelInfoResponse.java @@ -35,11 +35,11 @@ public class ModelInfoResponse { private Integer typeId; /** - * Possible values include: 'Entity Extractor', 'Hierarchical Entity - * Extractor', 'Hierarchical Child Entity Extractor', 'Composite Entity - * Extractor', 'Closed List Entity Extractor', 'Prebuilt Entity Extractor', - * 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity - * Extractor'. + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. */ @JsonProperty(value = "readableType", required = true) private String readableType; @@ -57,7 +57,7 @@ public class ModelInfoResponse { private List children; /** - * List of sub-lists. + * List of sublists. */ @JsonProperty(value = "subLists") private List subLists; @@ -75,7 +75,7 @@ public class ModelInfoResponse { private String customPrebuiltModelName; /** - * The Regex entity pattern. + * The Regular Expression entity pattern. */ @JsonProperty(value = "regexPattern") private String regexPattern; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/NDepthEntityExtractor.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/NDepthEntityExtractor.java new file mode 100644 index 000000000000..2223d492c7b7 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/NDepthEntityExtractor.java @@ -0,0 +1,231 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + +import java.util.UUID; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * N-Depth Entity Extractor. + */ +public class NDepthEntityExtractor { + /** + * The ID of the Entity Model. + */ + @JsonProperty(value = "id", required = true) + private UUID id; + + /** + * Name of the Entity Model. + */ + @JsonProperty(value = "name") + private String name; + + /** + * The type ID of the Entity Model. + */ + @JsonProperty(value = "typeId") + private Integer typeId; + + /** + * Possible values include: 'Entity Extractor', 'Child Entity Extractor', + * 'Hierarchical Entity Extractor', 'Hierarchical Child Entity Extractor', + * 'Composite Entity Extractor', 'List Entity Extractor', 'Prebuilt Entity + * Extractor', 'Intent Classifier', 'Pattern.Any Entity Extractor', 'Closed + * List Entity Extractor', 'Regex Entity Extractor'. + */ + @JsonProperty(value = "readableType", required = true) + private String readableType; + + /** + * The roles property. + */ + @JsonProperty(value = "roles") + private List roles; + + /** + * The domain name. + */ + @JsonProperty(value = "customPrebuiltDomainName") + private String customPrebuiltDomainName; + + /** + * The intent name or entity name. + */ + @JsonProperty(value = "customPrebuiltModelName") + private String customPrebuiltModelName; + + /** + * The children property. + */ + @JsonProperty(value = "children") + private List children; + + /** + * Get the id value. + * + * @return the id value + */ + public UUID id() { + return this.id; + } + + /** + * Set the id value. + * + * @param id the id value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withId(UUID id) { + this.id = id; + return this; + } + + /** + * Get the name value. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Set the name value. + * + * @param name the name value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withName(String name) { + this.name = name; + return this; + } + + /** + * Get the typeId value. + * + * @return the typeId value + */ + public Integer typeId() { + return this.typeId; + } + + /** + * Set the typeId value. + * + * @param typeId the typeId value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withTypeId(Integer typeId) { + this.typeId = typeId; + return this; + } + + /** + * Get the readableType value. + * + * @return the readableType value + */ + public String readableType() { + return this.readableType; + } + + /** + * Set the readableType value. + * + * @param readableType the readableType value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withReadableType(String readableType) { + this.readableType = readableType; + return this; + } + + /** + * Get the roles value. + * + * @return the roles value + */ + public List roles() { + return this.roles; + } + + /** + * Set the roles value. + * + * @param roles the roles value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withRoles(List roles) { + this.roles = roles; + return this; + } + + /** + * Get the customPrebuiltDomainName value. + * + * @return the customPrebuiltDomainName value + */ + public String customPrebuiltDomainName() { + return this.customPrebuiltDomainName; + } + + /** + * Set the customPrebuiltDomainName value. + * + * @param customPrebuiltDomainName the customPrebuiltDomainName value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withCustomPrebuiltDomainName(String customPrebuiltDomainName) { + this.customPrebuiltDomainName = customPrebuiltDomainName; + return this; + } + + /** + * Get the customPrebuiltModelName value. + * + * @return the customPrebuiltModelName value + */ + public String customPrebuiltModelName() { + return this.customPrebuiltModelName; + } + + /** + * Set the customPrebuiltModelName value. + * + * @param customPrebuiltModelName the customPrebuiltModelName value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withCustomPrebuiltModelName(String customPrebuiltModelName) { + this.customPrebuiltModelName = customPrebuiltModelName; + return this; + } + + /** + * Get the children value. + * + * @return the children value + */ + public List children() { + return this.children; + } + + /** + * Set the children value. + * + * @param children the children value to set + * @return the NDepthEntityExtractor object itself. + */ + public NDepthEntityExtractor withChildren(List children) { + this.children = children; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/OperationStatusType.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/OperationStatusType.java index 37624b07136a..2e7485d79d75 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/OperationStatusType.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/OperationStatusType.java @@ -8,10 +8,11 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; -import java.util.Collection; import com.fasterxml.jackson.annotation.JsonCreator; import com.microsoft.rest.ExpandableStringEnum; +import java.util.Collection; + /** * Defines values for OperationStatusType. */ @@ -19,6 +20,9 @@ public final class OperationStatusType extends ExpandableStringEnum roles; /** - * The Regex entity pattern. + * The Regular Expression entity pattern. */ @JsonProperty(value = "regexPattern") private String regexPattern; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelCreateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelCreateObject.java index 497620086290..3cafd8ff6088 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelCreateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelCreateObject.java @@ -11,11 +11,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Model object for creating a regex entity model. + * Model object for creating a regular expression entity model. */ public class RegexModelCreateObject { /** - * The regex entity pattern. + * The regular expression entity pattern. */ @JsonProperty(value = "regexPattern") private String regexPattern; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelUpdateObject.java index 796cb2f6d3e8..c526c12b13f2 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelUpdateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RegexModelUpdateObject.java @@ -11,11 +11,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Model object for updating a regex entity model. + * Model object for updating a regular expression entity model. */ public class RegexModelUpdateObject { /** - * The regex entity pattern. + * The regular expression entity pattern. */ @JsonProperty(value = "regexPattern") private String regexPattern; diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RemoveFromAppOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RemoveFromAppOptionalParameter.java new file mode 100644 index 000000000000..beedbe2d3b83 --- /dev/null +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/RemoveFromAppOptionalParameter.java @@ -0,0 +1,66 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + */ + +package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; + + +/** + * The RemoveFromAppOptionalParameter model. + */ +public class RemoveFromAppOptionalParameter { + /** + * The Azure account information object. + */ + private AzureAccountInfoObject azureAccountInfoObject; + + /** + * Gets or sets the preferred language for the response. + */ + private String thisclientacceptLanguage; + + /** + * Get the azureAccountInfoObject value. + * + * @return the azureAccountInfoObject value + */ + public AzureAccountInfoObject azureAccountInfoObject() { + return this.azureAccountInfoObject; + } + + /** + * Set the azureAccountInfoObject value. + * + * @param azureAccountInfoObject the azureAccountInfoObject value to set + * @return the RemoveFromAppOptionalParameter object itself. + */ + public RemoveFromAppOptionalParameter withAzureAccountInfoObject(AzureAccountInfoObject azureAccountInfoObject) { + this.azureAccountInfoObject = azureAccountInfoObject; + return this; + } + + /** + * Get the thisclientacceptLanguage value. + * + * @return the thisclientacceptLanguage value + */ + public String thisclientacceptLanguage() { + return this.thisclientacceptLanguage; + } + + /** + * Set the thisclientacceptLanguage value. + * + * @param thisclientacceptLanguage the thisclientacceptLanguage value to set + * @return the RemoveFromAppOptionalParameter object itself. + */ + public RemoveFromAppOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + this.thisclientacceptLanguage = thisclientacceptLanguage; + return this; + } + +} diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedList.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedList.java index 3ed60ad89561..385534936fee 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedList.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedList.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Sublist of items for a Closed list. + * Sublist of items for a list entity. */ public class SubClosedList { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedListResponse.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedListResponse.java index c829b65d6a90..9e5d7215ca94 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedListResponse.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/SubClosedListResponse.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Sublist of items for a Closed list. + * Sublist of items for a list entity. */ public class SubClosedListResponse extends SubClosedList { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateEntityOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateHierarchicalEntityOptionalParameter.java similarity index 73% rename from sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateEntityOptionalParameter.java rename to sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateHierarchicalEntityOptionalParameter.java index f6051b0de2e5..20c561613b23 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateEntityOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateHierarchicalEntityOptionalParameter.java @@ -10,9 +10,9 @@ /** - * The UpdateEntityOptionalParameter model. + * The UpdateHierarchicalEntityOptionalParameter model. */ -public class UpdateEntityOptionalParameter { +public class UpdateHierarchicalEntityOptionalParameter { /** * The entity's new name. */ @@ -36,9 +36,9 @@ public String name() { * Set the name value. * * @param name the name value to set - * @return the UpdateEntityOptionalParameter object itself. + * @return the UpdateHierarchicalEntityOptionalParameter object itself. */ - public UpdateEntityOptionalParameter withName(String name) { + public UpdateHierarchicalEntityOptionalParameter withName(String name) { this.name = name; return this; } @@ -56,9 +56,9 @@ public String thisclientacceptLanguage() { * Set the thisclientacceptLanguage value. * * @param thisclientacceptLanguage the thisclientacceptLanguage value to set - * @return the UpdateEntityOptionalParameter object itself. + * @return the UpdateHierarchicalEntityOptionalParameter object itself. */ - public UpdateEntityOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { + public UpdateHierarchicalEntityOptionalParameter withThisclientacceptLanguage(String thisclientacceptLanguage) { this.thisclientacceptLanguage = thisclientacceptLanguage; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateSettingsOptionalParameter.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateSettingsOptionalParameter.java index d036e1df26a8..f0d17c55a14e 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateSettingsOptionalParameter.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/UpdateSettingsOptionalParameter.java @@ -17,7 +17,7 @@ public class UpdateSettingsOptionalParameter { * Setting your application as public allows other people to use your * application's endpoint using their own keys. */ - private boolean publicParameter; + private boolean isPublic; /** * Gets or sets the preferred language for the response. @@ -25,22 +25,22 @@ public class UpdateSettingsOptionalParameter { private String thisclientacceptLanguage; /** - * Get the publicParameter value. + * Get the isPublic value. * - * @return the publicParameter value + * @return the isPublic value */ - public boolean publicParameter() { - return this.publicParameter; + public boolean isPublic() { + return this.isPublic; } /** - * Set the publicParameter value. + * Set the isPublic value. * - * @param publicParameter the publicParameter value to set + * @param isPublic the isPublic value to set * @return the UpdateSettingsOptionalParameter object itself. */ - public UpdateSettingsOptionalParameter withPublicParameter(boolean publicParameter) { - this.publicParameter = publicParameter; + public UpdateSettingsOptionalParameter withIsPublic(boolean isPublic) { + this.isPublic = isPublic; return this; } diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListBaseUpdateObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListBaseUpdateObject.java index 06d829742052..abc06078110a 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListBaseUpdateObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListBaseUpdateObject.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Object model for updating one of the closed list's sublists. + * Object model for updating one of the list entity's sublists. */ public class WordListBaseUpdateObject { /** diff --git a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListObject.java b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListObject.java index 1601037747fd..077549a9db3c 100644 --- a/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListObject.java +++ b/sdk/cognitiveservices/ms-azure-cs-luis-authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/WordListObject.java @@ -12,7 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; /** - * Sublist of items for a Closed list. + * Sublist of items for a list entity. */ public class WordListObject { /**