diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java index 7b1987ac2821..2ede84991ffb 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Apps.java @@ -73,7 +73,7 @@ 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); /** @@ -83,7 +83,7 @@ public interface Apps { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<ApplicationInfoResponse> object */ - + @Deprecated Observable> listAsync(ListAppsOptionalParameter listOptionalParameter); /** @@ -155,7 +155,7 @@ 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); /** @@ -166,7 +166,7 @@ interface AppsListDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - + @Deprecated Observable importMethodAsync(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter); /** @@ -462,7 +462,7 @@ 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); /** @@ -473,7 +473,7 @@ interface AppsImportMethodDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - + @Deprecated Observable updateSettingsAsync(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java index 3217ac4fa13e..b673d2e963f8 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Examples.java @@ -87,7 +87,7 @@ 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); /** @@ -99,7 +99,7 @@ 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); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java index 40b027313b96..647f5c198b0e 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Features.java @@ -65,7 +65,7 @@ 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); /** @@ -77,7 +77,7 @@ 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); /** @@ -174,7 +174,7 @@ 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); /** @@ -186,7 +186,7 @@ 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); /** @@ -310,7 +310,7 @@ 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); /** @@ -323,7 +323,7 @@ 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); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringAPI.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java similarity index 72% rename from cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringAPI.java rename to cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java index e21297ee992f..a3b9b84e9d9c 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringAPI.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringClient.java @@ -9,13 +9,12 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring; import com.microsoft.azure.AzureClient; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureRegions; import com.microsoft.rest.RestClient; /** - * The interface for LUISAuthoringAPI class. + * The interface for LUISAuthoringClient class. */ -public interface LUISAuthoringAPI { +public interface LUISAuthoringClient { /** * Gets the REST client. * @@ -36,21 +35,6 @@ public interface LUISAuthoringAPI { */ String userAgent(); - /** - * Gets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. - * - * @return the azureRegion value. - */ - AzureRegions azureRegion(); - - /** - * Sets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. - * - * @param azureRegion the azureRegion value. - * @return the service client itself - */ - LUISAuthoringAPI withAzureRegion(AzureRegions azureRegion); - /** * Gets Gets or sets the preferred language for the response.. * @@ -64,7 +48,7 @@ public interface LUISAuthoringAPI { * @param acceptLanguage the acceptLanguage value. * @return the service client itself */ - LUISAuthoringAPI withAcceptLanguage(String acceptLanguage); + LUISAuthoringClient withAcceptLanguage(String acceptLanguage); /** * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. @@ -79,7 +63,7 @@ public interface LUISAuthoringAPI { * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself */ - LUISAuthoringAPI withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); + LUISAuthoringClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); /** * Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.. @@ -94,7 +78,7 @@ public interface LUISAuthoringAPI { * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */ - LUISAuthoringAPI withGenerateClientRequestId(boolean generateClientRequestId); + LUISAuthoringClient withGenerateClientRequestId(boolean generateClientRequestId); /** * Gets the Features object to access its operations. diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java index 3ba0b50ffb33..5b4e94ff8eec 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/LUISAuthoringManager.java @@ -6,8 +6,7 @@ package com.microsoft.azure.cognitiveservices.language.luis.authoring; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.LUISAuthoringAPIImpl; -import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.AzureRegions; +import com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation.LUISAuthoringClientImpl; import com.microsoft.rest.RestClient; import com.microsoft.rest.credentials.ServiceClientCredentials; import okhttp3.Interceptor; @@ -24,13 +23,11 @@ public class LUISAuthoringManager { /** * Initializes an instance of Language Understanding (LUIS) Authoring API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param subscriptionKey the Language Understanding (LUIS) Authoring API key * @return the Language Understanding Authoring API client */ - public static LUISAuthoringAPI authenticate(AzureRegions region, String subscriptionKey) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0/", subscriptionKey) - .withAzureRegion(region); + public static LUISAuthoringClient authenticate(String subscriptionKey) { + return authenticate("https://api.cognitive.microsoft.com/luis/api/v2.0/", subscriptionKey); } /** @@ -40,7 +37,7 @@ public static LUISAuthoringAPI authenticate(AzureRegions region, String subscrip * @param subscriptionKey the Language Understanding (LUIS) Authoring API key * @return the Language Understanding (LUIS) Authoring API client */ - public static LUISAuthoringAPI authenticate(String baseUrl, final String subscriptionKey) { + public static LUISAuthoringClient authenticate(String baseUrl, final String subscriptionKey) { ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { @Override public void applyCredentialsFilter(OkHttpClient.Builder builder) { @@ -65,13 +62,11 @@ public Response intercept(Chain chain) throws IOException { /** * Initializes an instance of Language Understanding (LUIS) Authoring API client. * - * @param region Supported Azure regions for Cognitive Services endpoints. * @param credentials the management credentials for Azure * @return the Language Understanding (LUIS) Authoring API client */ - public static LUISAuthoringAPI authenticate(AzureRegions region, ServiceClientCredentials credentials) { - return authenticate("https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0/", credentials) - .withAzureRegion(region); + public static LUISAuthoringClient authenticate(ServiceClientCredentials credentials) { + return authenticate("https://api.cognitive.microsoft.com/luis/api/v2.0/", credentials); } /** @@ -81,8 +76,8 @@ public static LUISAuthoringAPI authenticate(AzureRegions region, ServiceClientCr * @param credentials the management credentials for Azure * @return the Language Understanding (LUIS) Authoring API client */ - public static LUISAuthoringAPI authenticate(String baseUrl, ServiceClientCredentials credentials) { - return new LUISAuthoringAPIImpl(baseUrl, credentials); + public static LUISAuthoringClient authenticate(String baseUrl, ServiceClientCredentials credentials) { + return new LUISAuthoringClientImpl(baseUrl, credentials); } /** @@ -91,7 +86,7 @@ public static LUISAuthoringAPI authenticate(String baseUrl, ServiceClientCredent * @param restClient the REST client to connect to Azure. * @return the Language Understanding (LUIS) Authoring API client */ - public static LUISAuthoringAPI authenticate(RestClient restClient) { - return new LUISAuthoringAPIImpl(restClient); + public static LUISAuthoringClient authenticate(RestClient restClient) { + return new LUISAuthoringClientImpl(restClient); } } diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java index 880d4af329fa..95e2a1be6950 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Models.java @@ -99,7 +99,7 @@ public interface Models { * @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); /** @@ -111,7 +111,7 @@ 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); /** @@ -201,7 +201,7 @@ 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); /** @@ -213,7 +213,7 @@ 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); /** @@ -310,7 +310,7 @@ interface ModelsListIntentsDefinition extends * @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); /** @@ -322,7 +322,7 @@ interface ModelsListIntentsDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the UUID object */ - + @Deprecated Observable addEntityAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter); /** @@ -412,7 +412,7 @@ interface ModelsAddEntityDefinition extends * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List<EntityExtractor> object if successful. */ - + @Deprecated List listEntities(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); /** @@ -424,7 +424,7 @@ interface ModelsAddEntityDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<EntityExtractor> object */ - + @Deprecated Observable> listEntitiesAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter); /** @@ -547,7 +547,7 @@ 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); /** @@ -559,7 +559,7 @@ 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); /** @@ -682,7 +682,7 @@ 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); /** @@ -694,7 +694,7 @@ 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); /** @@ -791,7 +791,7 @@ 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); /** @@ -803,7 +803,7 @@ 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); /** @@ -952,7 +952,7 @@ 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); /** @@ -964,7 +964,7 @@ 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); /** @@ -1085,7 +1085,7 @@ 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); /** @@ -1097,7 +1097,7 @@ 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); /** @@ -1195,7 +1195,7 @@ 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); /** @@ -1208,7 +1208,7 @@ 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); /** @@ -1344,7 +1344,7 @@ 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); /** @@ -1357,7 +1357,7 @@ 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); /** @@ -1460,7 +1460,7 @@ 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); /** @@ -1473,7 +1473,7 @@ 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); /** @@ -1603,7 +1603,7 @@ interface ModelsDeleteIntentDefinition extends * @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); /** @@ -1616,7 +1616,7 @@ interface ModelsDeleteIntentDefinition extends * @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); /** @@ -1959,7 +1959,7 @@ interface ModelsUpdateEntityDefinition extends * @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); /** @@ -1972,7 +1972,7 @@ interface ModelsUpdateEntityDefinition extends * @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); /** @@ -2211,7 +2211,7 @@ interface ModelsPatchClosedListDefinition extends * @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); /** @@ -2224,7 +2224,7 @@ interface ModelsPatchClosedListDefinition extends * @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); /** @@ -2327,7 +2327,7 @@ interface ModelsGetIntentSuggestionsDefinition extends * @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); /** @@ -2340,7 +2340,7 @@ interface ModelsGetIntentSuggestionsDefinition extends * @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); /** @@ -2470,7 +2470,7 @@ 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); /** @@ -2482,7 +2482,7 @@ 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); /** @@ -2756,7 +2756,7 @@ 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); /** @@ -2770,7 +2770,7 @@ 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); /** @@ -2913,7 +2913,7 @@ interface ModelsUpdateHierarchicalEntityChildDefinition extends * @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); /** @@ -2926,7 +2926,7 @@ interface ModelsUpdateHierarchicalEntityChildDefinition extends * @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); /** @@ -3029,7 +3029,7 @@ 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); /** @@ -3042,7 +3042,7 @@ 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); /** @@ -3172,7 +3172,7 @@ interface ModelsAddCompositeEntityChildDefinition extends * @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); /** @@ -3184,7 +3184,7 @@ interface ModelsAddCompositeEntityChildDefinition extends * @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); /** @@ -3307,7 +3307,7 @@ interface ModelsGetRegexEntityInfosDefinition extends * @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); /** @@ -3319,7 +3319,7 @@ interface ModelsGetRegexEntityInfosDefinition extends * @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); /** @@ -3469,7 +3469,7 @@ 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); /** @@ -3482,7 +3482,7 @@ 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); /** @@ -3611,7 +3611,7 @@ 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); /** @@ -3624,7 +3624,7 @@ 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); /** @@ -3753,7 +3753,7 @@ 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); /** @@ -3766,7 +3766,7 @@ 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); /** @@ -3895,7 +3895,7 @@ 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); /** @@ -3908,7 +3908,7 @@ 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); /** @@ -4037,7 +4037,7 @@ 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); /** @@ -4050,7 +4050,7 @@ 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); /** @@ -4179,7 +4179,7 @@ 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); /** @@ -4192,7 +4192,7 @@ 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); /** @@ -4321,7 +4321,7 @@ 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); /** @@ -4334,7 +4334,7 @@ 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); /** @@ -4463,7 +4463,7 @@ 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); /** @@ -4476,7 +4476,7 @@ 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); /** @@ -4605,7 +4605,7 @@ 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); /** @@ -4618,7 +4618,7 @@ 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); /** @@ -4910,7 +4910,7 @@ 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); /** @@ -4924,7 +4924,7 @@ 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); /** @@ -5096,7 +5096,7 @@ 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); /** @@ -5110,7 +5110,7 @@ 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); /** @@ -5282,7 +5282,7 @@ 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); /** @@ -5296,7 +5296,7 @@ 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); /** @@ -5468,7 +5468,7 @@ 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); /** @@ -5482,7 +5482,7 @@ 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); /** @@ -5654,7 +5654,7 @@ 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); /** @@ -5668,7 +5668,7 @@ 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); /** @@ -5840,7 +5840,7 @@ 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); /** @@ -5854,7 +5854,7 @@ 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); /** @@ -6026,7 +6026,7 @@ 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); /** @@ -6040,7 +6040,7 @@ 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); /** @@ -6212,7 +6212,7 @@ 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); /** @@ -6226,7 +6226,7 @@ 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); /** @@ -6398,7 +6398,7 @@ 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); /** @@ -6412,7 +6412,7 @@ 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); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java index ff1ab0a7150b..da99df1243ac 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Patterns.java @@ -61,7 +61,7 @@ public interface Patterns { * @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); /** @@ -73,7 +73,7 @@ public interface Patterns { * @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); /** @@ -303,7 +303,7 @@ interface PatternsGetPatternsDefinition extends * @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); /** @@ -316,7 +316,7 @@ interface PatternsGetPatternsDefinition extends * @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); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java index 277803395457..1dacbabbbe7d 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Permissions.java @@ -56,7 +56,7 @@ 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,7 @@ 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 +147,7 @@ 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 +159,7 @@ 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); /** @@ -238,7 +238,7 @@ 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); /** @@ -250,7 +250,7 @@ interface PermissionsDeleteDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the OperationStatus object */ - + @Deprecated Observable updateAsync(UUID appId, UpdatePermissionsOptionalParameter updateOptionalParameter); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java index bacc3cf4cf4e..9312c79fb9d1 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/Versions.java @@ -36,7 +36,7 @@ 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); /** @@ -48,7 +48,7 @@ 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); /** @@ -137,7 +137,7 @@ 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); /** @@ -148,7 +148,7 @@ interface VersionsCloneDefinition extends * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List<VersionInfo> object */ - + @Deprecated Observable> listAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter); /** @@ -257,7 +257,7 @@ 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 +269,7 @@ 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 +407,7 @@ 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 +419,7 @@ 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); /** diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java index 541312fb381a..924eff8f513f 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/AppsImpl.java @@ -13,7 +13,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateSettingsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps; -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.ApplicationCreateObject; @@ -64,7 +63,7 @@ public class AppsImpl implements Apps { /** The Retrofit service to perform REST calls. */ private AppsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of AppsImpl. @@ -72,7 +71,7 @@ public class AppsImpl implements Apps { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public AppsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public AppsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(AppsService.class); this.client = client; } @@ -84,84 +83,84 @@ public AppsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface AppsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps add" }) @POST("apps/") - Observable> add(@Body ApplicationCreateObject applicationCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> add(@Body ApplicationCreateObject applicationCreateObject, @Header("accept-language") String acceptLanguage, @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 list" }) @GET("apps/") - Observable> list(@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> list(@Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 importMethod" }) @POST("apps/import") - Observable> importMethod(@Query("appName") String appName, @Body LuisApp luisApp, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> importMethod(@Query("appName") String appName, @Body LuisApp luisApp, @Header("accept-language") String acceptLanguage, @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 listCortanaEndpoints" }) @GET("apps/assistants") - Observable> listCortanaEndpoints(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listCortanaEndpoints(@Header("accept-language") String acceptLanguage, @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 listDomains" }) @GET("apps/domains") - Observable> listDomains(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listDomains(@Header("accept-language") String acceptLanguage, @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 listUsageScenarios" }) @GET("apps/usagescenarios") - Observable> listUsageScenarios(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listUsageScenarios(@Header("accept-language") String acceptLanguage, @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 listSupportedCultures" }) @GET("apps/cultures") - Observable> listSupportedCultures(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listSupportedCultures(@Header("accept-language") String acceptLanguage, @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 downloadQueryLogs" }) @GET("apps/{appId}/querylogs") @Streaming - Observable> downloadQueryLogs(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> downloadQueryLogs(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @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 get" }) @GET("apps/{appId}") - Observable> get(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> get(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @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 update" }) @PUT("apps/{appId}") - Observable> update(@Path("appId") UUID appId, @Body ApplicationUpdateObject applicationUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> update(@Path("appId") UUID appId, @Body ApplicationUpdateObject applicationUpdateObject, @Header("accept-language") String acceptLanguage, @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 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, @Header("accept-language") String acceptLanguage, @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") - Observable> publish(@Path("appId") UUID appId, @Body ApplicationPublishObject applicationPublishObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> publish(@Path("appId") UUID appId, @Body ApplicationPublishObject applicationPublishObject, @Header("accept-language") String acceptLanguage, @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 getSettings" }) @GET("apps/{appId}/settings") - Observable> getSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @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 updateSettings" }) @PUT("apps/{appId}/settings") - Observable> updateSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body ApplicationSettingUpdateObject applicationSettingUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body ApplicationSettingUpdateObject applicationSettingUpdateObject, @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 getPublishSettings" }) @GET("apps/{appId}/publishsettings") - Observable> getPublishSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getPublishSettings(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @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 updatePublishSettings" }) @PUT("apps/{appId}/publishsettings") - Observable> updatePublishSettings(@Path("appId") UUID appId, @Body PublishSettingUpdateObject publishSettingUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePublishSettings(@Path("appId") UUID appId, @Body PublishSettingUpdateObject publishSettingUpdateObject, @Header("accept-language") String acceptLanguage, @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 listEndpoints" }) @GET("apps/{appId}/endpoints") - Observable> listEndpoints(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listEndpoints(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @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 listAvailableCustomPrebuiltDomains" }) @GET("apps/customprebuiltdomains") - Observable> listAvailableCustomPrebuiltDomains(@Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> listAvailableCustomPrebuiltDomains(@Header("accept-language") String acceptLanguage, @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 addCustomPrebuiltDomain" }) @POST("apps/customprebuiltdomains") - Observable> addCustomPrebuiltDomain(@Body PrebuiltDomainCreateObject prebuiltDomainCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addCustomPrebuiltDomain(@Body PrebuiltDomainCreateObject prebuiltDomainCreateObject, @Header("accept-language") String acceptLanguage, @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 listAvailableCustomPrebuiltDomainsForCulture" }) @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); + Observable> listAvailableCustomPrebuiltDomainsForCulture(@Path("culture") String culture, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -214,15 +213,11 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addWithServiceResponseAsync(ApplicationCreateObject applicationCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (applicationCreateObject == null) { throw new IllegalArgumentException("Parameter applicationCreateObject is required and cannot be null."); } Validator.validate(applicationCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.add(applicationCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.add(applicationCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -293,9 +288,6 @@ public List call(ServiceResponse>> listWithServiceResponseAsync(ListAppsOptionalParameter listOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } final Integer skip = listOptionalParameter != null ? listOptionalParameter.skip() : null; final Integer take = listOptionalParameter != null ? listOptionalParameter.take() : null; @@ -311,11 +303,7 @@ public Observable>> listWithServic * @return the observable to the List<ApplicationInfoResponse> object */ public Observable>> listWithServiceResponseAsync(Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.list(skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.list(skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -329,7 +317,7 @@ public Observable>> call(Response< }); } - private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -439,9 +427,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> importMethodWithServiceResponseAsync(LuisApp luisApp, ImportMethodAppsOptionalParameter importMethodOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (luisApp == null) { throw new IllegalArgumentException("Parameter luisApp is required and cannot be null."); } @@ -460,15 +445,11 @@ public Observable> importMethodWithServiceResponseAsync(Lu * @return the observable to the UUID object */ public Observable> importMethodWithServiceResponseAsync(LuisApp luisApp, String appName) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (luisApp == null) { throw new IllegalArgumentException("Parameter luisApp is required and cannot be null."); } Validator.validate(luisApp); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.importMethod(appName, luisApp, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.importMethod(appName, luisApp, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -583,11 +564,7 @@ public PersonalAssistantsResponse call(ServiceResponse> listCortanaEndpointsWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listCortanaEndpoints(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCortanaEndpoints(this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -601,7 +578,7 @@ public Observable> call(Response listCortanaEndpointsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse listCortanaEndpointsDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) .register(200, new TypeToken() { }.getType()) .registerError(ErrorResponseException.class) @@ -653,11 +630,7 @@ public List call(ServiceResponse> response) { * @return the observable to the List<String> object */ public Observable>> listDomainsWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listDomains(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listDomains(this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -671,7 +644,7 @@ public Observable>> call(Response res }); } - private ServiceResponse> listDomainsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listDomainsDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -723,11 +696,7 @@ public List call(ServiceResponse> response) { * @return the observable to the List<String> object */ public Observable>> listUsageScenariosWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listUsageScenarios(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listUsageScenarios(this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -741,7 +710,7 @@ public Observable>> call(Response res }); } - private ServiceResponse> listUsageScenariosDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listUsageScenariosDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -793,11 +762,7 @@ public List call(ServiceResponse> respo * @return the observable to the List<AvailableCulture> object */ public Observable>> listSupportedCulturesWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listSupportedCultures(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listSupportedCultures(this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -811,7 +776,7 @@ public Observable>> call(Response> listSupportedCulturesDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listSupportedCulturesDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -867,14 +832,10 @@ public InputStream call(ServiceResponse response) { * @return the observable to the InputStream object */ public Observable> downloadQueryLogsWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.downloadQueryLogs(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.downloadQueryLogs(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -944,14 +905,10 @@ public ApplicationInfoResponse call(ServiceResponse res * @return the observable to the ApplicationInfoResponse object */ public Observable> getWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.get(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.get(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1025,9 +982,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateWithServiceResponseAsync(UUID appId, ApplicationUpdateObject applicationUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1035,8 +989,7 @@ public Observable> updateWithServiceResponseAsy throw new IllegalArgumentException("Parameter applicationUpdateObject is required and cannot be null."); } Validator.validate(applicationUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.update(appId, applicationUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.update(appId, applicationUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1106,14 +1059,10 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.delete(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.delete(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1187,9 +1136,6 @@ public ProductionOrStagingEndpointInfo call(ServiceResponse> publishWithServiceResponseAsync(UUID appId, ApplicationPublishObject applicationPublishObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1197,8 +1143,7 @@ public Observable> publishWithS throw new IllegalArgumentException("Parameter applicationPublishObject is required and cannot be null."); } Validator.validate(applicationPublishObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.publish(appId, applicationPublishObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.publish(appId, applicationPublishObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1268,14 +1213,10 @@ public ApplicationSettings call(ServiceResponse response) { * @return the observable to the ApplicationSettings object */ public Observable> getSettingsWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getSettings(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getSettings(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1350,9 +1291,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateSettingsWithServiceResponseAsync(UUID appId, UpdateSettingsOptionalParameter updateSettingsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1370,16 +1308,12 @@ public Observable> updateSettingsWithServiceRes * @return the observable to the OperationStatus object */ public Observable> updateSettingsWithServiceResponseAsync(UUID appId, boolean publicParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } ApplicationSettingUpdateObject applicationSettingUpdateObject = new ApplicationSettingUpdateObject(); applicationSettingUpdateObject.withPublicProperty(publicParameter); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateSettings(appId, this.client.acceptLanguage(), applicationSettingUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateSettings(appId, this.client.acceptLanguage(), applicationSettingUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1498,14 +1432,10 @@ public PublishSettings call(ServiceResponse response) { * @return the observable to the PublishSettings object */ public Observable> getPublishSettingsWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getPublishSettings(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPublishSettings(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1579,9 +1509,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updatePublishSettingsWithServiceResponseAsync(UUID appId, PublishSettingUpdateObject publishSettingUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1589,8 +1516,7 @@ public Observable> updatePublishSettingsWithSer throw new IllegalArgumentException("Parameter publishSettingUpdateObject is required and cannot be null."); } Validator.validate(publishSettingUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePublishSettings(appId, publishSettingUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updatePublishSettings(appId, publishSettingUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1660,14 +1586,10 @@ public Map call(ServiceResponse> response) { * @return the observable to the Map<String, String> object */ public Observable>> listEndpointsWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listEndpoints(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listEndpoints(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1733,11 +1655,7 @@ public List call(ServiceResponse> response) * @return the observable to the List<PrebuiltDomain> object */ public Observable>> listAvailableCustomPrebuiltDomainsWithServiceResponseAsync() { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listAvailableCustomPrebuiltDomains(this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listAvailableCustomPrebuiltDomains(this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1751,7 +1669,7 @@ public Observable>> call(Response> listAvailableCustomPrebuiltDomainsDelegate(Response response) throws ErrorResponseException, IOException, IllegalArgumentException { + private ServiceResponse> listAvailableCustomPrebuiltDomainsDelegate(Response response) throws ErrorResponseException, IOException { return this.client.restClient().responseBuilderFactory()., ErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(ErrorResponseException.class) @@ -1807,15 +1725,11 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addCustomPrebuiltDomainWithServiceResponseAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (prebuiltDomainCreateObject == null) { throw new IllegalArgumentException("Parameter prebuiltDomainCreateObject is required and cannot be null."); } Validator.validate(prebuiltDomainCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCustomPrebuiltDomain(prebuiltDomainCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addCustomPrebuiltDomain(prebuiltDomainCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1885,14 +1799,10 @@ public List call(ServiceResponse> response) * @return the observable to the List<PrebuiltDomain> object */ public Observable>> listAvailableCustomPrebuiltDomainsForCultureWithServiceResponseAsync(String culture) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (culture == null) { throw new IllegalArgumentException("Parameter culture is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.listAvailableCustomPrebuiltDomainsForCulture(culture, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listAvailableCustomPrebuiltDomainsForCulture(culture, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java index e6a4ed927dc5..9eff79626adc 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ExamplesImpl.java @@ -11,7 +11,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ListExamplesOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples; -import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.BatchLabelExample; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; @@ -47,7 +46,7 @@ public class ExamplesImpl implements Examples { /** The Retrofit service to perform REST calls. */ private ExamplesService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of ExamplesImpl. @@ -55,7 +54,7 @@ public class ExamplesImpl implements Examples { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public ExamplesImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public ExamplesImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(ExamplesService.class); this.client = client; } @@ -67,19 +66,19 @@ public ExamplesImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface ExamplesService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples add" }) @POST("apps/{appId}/versions/{versionId}/example") - Observable> add(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body ExampleLabelObject exampleLabelObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> add(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body ExampleLabelObject exampleLabelObject, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples batch" }) @POST("apps/{appId}/versions/{versionId}/examples") - Observable> batch(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List exampleLabelObjectArray, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> batch(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List exampleLabelObjectArray, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples list" }) @GET("apps/{appId}/versions/{versionId}/examples") - Observable> list(@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> list(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Examples delete" }) @HTTP(path = "apps/{appId}/versions/{versionId}/examples/{exampleId}", method = "DELETE", hasBody = true) - Observable> delete(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("exampleId") int exampleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> delete(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("exampleId") int exampleId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -140,9 +139,6 @@ public LabelExampleResponse call(ServiceResponse response) * @return the observable to the LabelExampleResponse object */ public Observable> addWithServiceResponseAsync(UUID appId, String versionId, ExampleLabelObject exampleLabelObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -153,8 +149,7 @@ public Observable> addWithServiceResponseA throw new IllegalArgumentException("Parameter exampleLabelObject is required and cannot be null."); } Validator.validate(exampleLabelObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.add(appId, versionId, exampleLabelObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.add(appId, versionId, exampleLabelObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -232,9 +227,6 @@ public List call(ServiceResponse> res * @return the observable to the List<BatchLabelExample> object */ public Observable>> batchWithServiceResponseAsync(UUID appId, String versionId, List exampleLabelObjectArray) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -245,8 +237,7 @@ public Observable>> batchWithServiceResp throw new IllegalArgumentException("Parameter exampleLabelObjectArray is required and cannot be null."); } Validator.validate(exampleLabelObjectArray); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.batch(appId, versionId, exampleLabelObjectArray, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.batch(appId, versionId, exampleLabelObjectArray, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -326,9 +317,6 @@ public List call(ServiceResponse> respo * @return the observable to the List<LabeledUtterance> object */ public Observable>> listWithServiceResponseAsync(UUID appId, String versionId, ListExamplesOptionalParameter listOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -352,17 +340,13 @@ public Observable>> listWithServiceRespon * @return the observable to the List<LabeledUtterance> object */ public Observable>> listWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.list(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.list(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -503,17 +487,13 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteWithServiceResponseAsync(UUID appId, String versionId, int exampleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.delete(appId, versionId, exampleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.delete(appId, versionId, exampleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java index 108da027d980..07627d490851 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/FeaturesImpl.java @@ -13,7 +13,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdatePhraseListOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Features; -import com.google.common.base.Joiner; 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; @@ -50,7 +49,7 @@ public class FeaturesImpl implements Features { /** The Retrofit service to perform REST calls. */ private FeaturesService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of FeaturesImpl. @@ -58,7 +57,7 @@ public class FeaturesImpl implements Features { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public FeaturesImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public FeaturesImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(FeaturesService.class); this.client = client; } @@ -70,27 +69,27 @@ public FeaturesImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface FeaturesService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Features addPhraseList" }) @POST("apps/{appId}/versions/{versionId}/phraselists") - Observable> addPhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PhraselistCreateObject phraselistCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addPhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PhraselistCreateObject phraselistCreateObject, @Header("accept-language") String acceptLanguage, @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 listPhraseLists" }) @GET("apps/{appId}/versions/{versionId}/phraselists") - Observable> listPhraseLists(@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> listPhraseLists(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 list" }) @GET("apps/{appId}/versions/{versionId}/features") - Observable> list(@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> list(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 getPhraseList" }) @GET("apps/{appId}/versions/{versionId}/phraselists/{phraselistId}") - Observable> getPhraseList(@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); + Observable> getPhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("phraselistId") int phraselistId, @Header("accept-language") String acceptLanguage, @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 updatePhraseList" }) @PUT("apps/{appId}/versions/{versionId}/phraselists/{phraselistId}") - Observable> updatePhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("phraselistId") int phraselistId, @Body PhraselistUpdateObject phraselistUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("phraselistId") int phraselistId, @Body PhraselistUpdateObject phraselistUpdateObject, @Header("accept-language") String acceptLanguage, @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 deletePhraseList" }) @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); + Observable> deletePhraseList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("phraselistId") int phraselistId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -151,9 +150,6 @@ public Integer call(ServiceResponse response) { * @return the observable to the Integer object */ public Observable> addPhraseListWithServiceResponseAsync(UUID appId, String versionId, PhraselistCreateObject phraselistCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -164,8 +160,7 @@ public Observable> addPhraseListWithServiceResponseAsyn throw new IllegalArgumentException("Parameter phraselistCreateObject is required and cannot be null."); } Validator.validate(phraselistCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addPhraseList(appId, versionId, phraselistCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addPhraseList(appId, versionId, phraselistCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -244,9 +239,6 @@ public List call(ServiceResponse>> listPhraseListsWithServiceResponseAsync(UUID appId, String versionId, ListPhraseListsOptionalParameter listPhraseListsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -270,17 +262,13 @@ public Observable>> listPhraseListsW * @return the observable to the List<PhraseListFeatureInfo> object */ public Observable>> listPhraseListsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listPhraseLists(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPhraseLists(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -422,9 +410,6 @@ public FeaturesResponseObject call(ServiceResponse respo * @return the observable to the FeaturesResponseObject object */ public Observable> listWithServiceResponseAsync(UUID appId, String versionId, ListFeaturesOptionalParameter listOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -448,17 +433,13 @@ public Observable> listWithServiceRespon * @return the observable to the FeaturesResponseObject object */ public Observable> listWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.list(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.list(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -599,17 +580,13 @@ public PhraseListFeatureInfo call(ServiceResponse respons * @return the observable to the PhraseListFeatureInfo object */ public Observable> getPhraseListWithServiceResponseAsync(UUID appId, String versionId, int phraselistId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getPhraseList(appId, versionId, phraselistId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPhraseList(appId, versionId, phraselistId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -692,9 +669,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updatePhraseListWithServiceResponseAsync(UUID appId, String versionId, int phraselistId, UpdatePhraseListOptionalParameter updatePhraseListOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -717,9 +691,6 @@ public Observable> updatePhraseListWithServiceR * @return the observable to the OperationStatus object */ public Observable> updatePhraseListWithServiceResponseAsync(UUID appId, String versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -727,8 +698,7 @@ public Observable> updatePhraseListWithServiceR throw new IllegalArgumentException("Parameter versionId is required and cannot be null."); } Validator.validate(phraselistUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePhraseList(appId, versionId, phraselistId, phraselistUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updatePhraseList(appId, versionId, phraselistId, phraselistUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -869,17 +839,13 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePhraseListWithServiceResponseAsync(UUID appId, String versionId, int phraselistId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.deletePhraseList(appId, versionId, phraselistId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePhraseList(appId, versionId, phraselistId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringAPIImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java similarity index 76% rename from cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringAPIImpl.java rename to cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java index 888a3ecd219a..89f5a0a8803c 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringAPIImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/LUISAuthoringClientImpl.java @@ -13,9 +13,8 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.Apps; 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.LUISAuthoringAPI; +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.models.AzureRegions; 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.Trains; @@ -24,9 +23,9 @@ import com.microsoft.rest.RestClient; /** - * Initializes a new instance of the LUISAuthoringAPIImpl class. + * Initializes a new instance of the LUISAuthoringClientImpl class. */ -public class LUISAuthoringAPIImpl extends AzureServiceClient implements LUISAuthoringAPI { +public class LUISAuthoringClientImpl extends AzureServiceClient implements LUISAuthoringClient { /** the {@link AzureClient} used for long running operations. */ private AzureClient azureClient; @@ -38,29 +37,6 @@ public AzureClient getAzureClient() { return this.azureClient; } - /** Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. */ - private AzureRegions azureRegion; - - /** - * Gets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. - * - * @return the azureRegion value. - */ - public AzureRegions azureRegion() { - return this.azureRegion; - } - - /** - * Sets Supported Azure regions for Cognitive Services endpoints. Possible values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth'. - * - * @param azureRegion the azureRegion value. - * @return the service client itself - */ - public LUISAuthoringAPIImpl withAzureRegion(AzureRegions azureRegion) { - this.azureRegion = azureRegion; - return this; - } - /** Gets or sets the preferred language for the response. */ private String acceptLanguage; @@ -79,7 +55,7 @@ public String acceptLanguage() { * @param acceptLanguage the acceptLanguage value. * @return the service client itself */ - public LUISAuthoringAPIImpl withAcceptLanguage(String acceptLanguage) { + public LUISAuthoringClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; } @@ -102,7 +78,7 @@ public int longRunningOperationRetryTimeout() { * @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. * @return the service client itself */ - public LUISAuthoringAPIImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { + public LUISAuthoringClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; return this; } @@ -125,7 +101,7 @@ public boolean generateClientRequestId() { * @param generateClientRequestId the generateClientRequestId value. * @return the service client itself */ - public LUISAuthoringAPIImpl withGenerateClientRequestId(boolean generateClientRequestId) { + public LUISAuthoringClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; } @@ -235,31 +211,31 @@ public Patterns patterns() { } /** - * Initializes an instance of LUISAuthoringAPI client. + * Initializes an instance of LUISAuthoringClient client. * * @param credentials the management credentials for Azure */ - public LUISAuthoringAPIImpl(ServiceClientCredentials credentials) { - this("https://{AzureRegion}.api.cognitive.microsoft.com/luis/api/v2.0", credentials); + public LUISAuthoringClientImpl(ServiceClientCredentials credentials) { + this("https://api.cognitive.microsoft.com/luis/api/v2.0", credentials); } /** - * Initializes an instance of LUISAuthoringAPI client. + * Initializes an instance of LUISAuthoringClient client. * * @param baseUrl the base URL of the host * @param credentials the management credentials for Azure */ - public LUISAuthoringAPIImpl(String baseUrl, ServiceClientCredentials credentials) { + public LUISAuthoringClientImpl(String baseUrl, ServiceClientCredentials credentials) { super(baseUrl, credentials); initialize(); } /** - * Initializes an instance of LUISAuthoringAPI client. + * Initializes an instance of LUISAuthoringClient client. * * @param restClient the REST client to connect to Azure. */ - public LUISAuthoringAPIImpl(RestClient restClient) { + public LUISAuthoringClientImpl(RestClient restClient) { super(restClient); initialize(); } @@ -286,6 +262,6 @@ protected void initialize() { */ @Override public String userAgent() { - return String.format("%s (%s, %s)", super.userAgent(), "LUISAuthoringAPI", "v2.0 preview"); + return String.format("%s (%s, %s)", super.userAgent(), "LUISAuthoringClient", "2.0"); } } diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java index f44d856537ae..69e8f5414d95 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/ModelsImpl.java @@ -50,7 +50,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdateExplicitListItemOptionalParameter; import retrofit2.Retrofit; 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; @@ -124,7 +123,7 @@ public class ModelsImpl implements Models { /** The Retrofit service to perform REST calls. */ private ModelsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of ModelsImpl. @@ -132,7 +131,7 @@ public class ModelsImpl implements Models { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public ModelsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public ModelsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(ModelsService.class); this.client = client; } @@ -144,427 +143,427 @@ public ModelsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface ModelsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Models addIntent" }) @POST("apps/{appId}/versions/{versionId}/intents") - Observable> addIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body ModelCreateObject intentCreateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body ModelCreateObject intentCreateObject, @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 listIntents" }) @GET("apps/{appId}/versions/{versionId}/intents") - Observable> listIntents(@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> listIntents(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 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, @Header("accept-language") String acceptLanguage, @Body ModelCreateObject modelCreateObject, @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); + Observable> listEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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); + Observable> addHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body HierarchicalEntityModel hierarchicalModelCreateObject, @Header("accept-language") String acceptLanguage, @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); + Observable> listHierarchicalEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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); + Observable> addCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body CompositeEntityModel compositeModelCreateObject, @Header("accept-language") String acceptLanguage, @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); + Observable> listCompositeEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 listClosedLists" }) @GET("apps/{appId}/versions/{versionId}/closedlists") - Observable> listClosedLists(@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> listClosedLists(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 addClosedList" }) @POST("apps/{appId}/versions/{versionId}/closedlists") - Observable> addClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body ClosedListModelCreateObject closedListModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body ClosedListModelCreateObject closedListModelCreateObject, @Header("accept-language") String acceptLanguage, @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 addPrebuilt" }) @POST("apps/{appId}/versions/{versionId}/prebuilts") - Observable> addPrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List prebuiltExtractorNames, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addPrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List prebuiltExtractorNames, @Header("accept-language") String acceptLanguage, @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 listPrebuilts" }) @GET("apps/{appId}/versions/{versionId}/prebuilts") - Observable> listPrebuilts(@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> listPrebuilts(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 listPrebuiltEntities" }) @GET("apps/{appId}/versions/{versionId}/listprebuilts") - Observable> listPrebuiltEntities(@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); + Observable> listPrebuiltEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @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 listModels" }) @GET("apps/{appId}/versions/{versionId}/models") - Observable> listModels(@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> listModels(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 examplesMethod" }) @GET("apps/{appId}/versions/{versionId}/models/{modelId}/examples") - Observable> examplesMethod(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("modelId") String modelId, @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> examplesMethod(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("modelId") String modelId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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 getIntent" }) @GET("apps/{appId}/versions/{versionId}/intents/{intentId}") - Observable> getIntent(@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); + Observable> getIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Header("accept-language") String acceptLanguage, @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 updateIntent" }) @PUT("apps/{appId}/versions/{versionId}/intents/{intentId}") - Observable> updateIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Header("accept-language") String acceptLanguage, @Body ModelUpdateObject modelUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Header("accept-language") String acceptLanguage, @Body ModelUpdateObject modelUpdateObject, @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 deleteIntent" }) @HTTP(path = "apps/{appId}/versions/{versionId}/intents/{intentId}", method = "DELETE", hasBody = true) - Observable> deleteIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("deleteUtterances") Boolean deleteUtterances, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("deleteUtterances") Boolean deleteUtterances, @Header("accept-language") String acceptLanguage, @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 getEntity" }) @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); + Observable> getEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> updateEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body ModelUpdateObject modelUpdateObject, @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); + Observable> deleteEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> getHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @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); + Observable> updateHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Body HierarchicalEntityModel hierarchicalModelUpdateObject, @Header("accept-language") String acceptLanguage, @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) - Observable> deleteHierarchicalEntity(@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> deleteHierarchicalEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @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 getCompositeEntity" }) @GET("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}") - Observable> getCompositeEntity(@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> getCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @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 updateCompositeEntity" }) @PUT("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}") - Observable> updateCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Body CompositeEntityModel compositeModelUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Body CompositeEntityModel compositeModelUpdateObject, @Header("accept-language") String acceptLanguage, @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 deleteCompositeEntity" }) @HTTP(path = "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}", method = "DELETE", hasBody = true) - Observable> deleteCompositeEntity(@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> deleteCompositeEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @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 getClosedList" }) @GET("apps/{appId}/versions/{versionId}/closedlists/{clEntityId}") - Observable> getClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @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 updateClosedList" }) @PUT("apps/{appId}/versions/{versionId}/closedlists/{clEntityId}") - Observable> updateClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Body ClosedListModelUpdateObject closedListModelUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Body ClosedListModelUpdateObject closedListModelUpdateObject, @Header("accept-language") String acceptLanguage, @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 patchClosedList" }) @PATCH("apps/{appId}/versions/{versionId}/closedlists/{clEntityId}") - Observable> patchClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @Body ClosedListModelPatchObject closedListModelPatchObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> patchClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @Body ClosedListModelPatchObject closedListModelPatchObject, @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 deleteClosedList" }) @HTTP(path = "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}", method = "DELETE", hasBody = true) - Observable> deleteClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteClosedList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Header("accept-language") String acceptLanguage, @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 getPrebuilt" }) @GET("apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}") - Observable> getPrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("prebuiltId") UUID prebuiltId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getPrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("prebuiltId") UUID prebuiltId, @Header("accept-language") String acceptLanguage, @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 deletePrebuilt" }) @HTTP(path = "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}", method = "DELETE", hasBody = true) - Observable> deletePrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("prebuiltId") UUID prebuiltId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deletePrebuilt(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("prebuiltId") UUID prebuiltId, @Header("accept-language") String acceptLanguage, @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 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") int subListId, @Header("accept-language") String acceptLanguage, @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") int subListId, @Body WordListBaseUpdateObject wordListBaseUpdateObject, @Header("accept-language") String acceptLanguage, @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" }) @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> getIntentSuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("intentId") UUID intentId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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" }) @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> getEntitySuggestions(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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") - Observable> addSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Body WordListObject wordListCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addSubList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("clEntityId") UUID clEntityId, @Body WordListObject wordListCreateObject, @Header("accept-language") String acceptLanguage, @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 addCustomPrebuiltDomain" }) @POST("apps/{appId}/versions/{versionId}/customprebuiltdomains") - Observable> addCustomPrebuiltDomain(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body PrebuiltDomainCreateBaseObject prebuiltDomainObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addCustomPrebuiltDomain(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body PrebuiltDomainCreateBaseObject prebuiltDomainObject, @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 addCustomPrebuiltIntent" }) @POST("apps/{appId}/versions/{versionId}/customprebuiltintents") - Observable> addCustomPrebuiltIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addCustomPrebuiltIntent(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, @Header("accept-language") String acceptLanguage, @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 listCustomPrebuiltIntents" }) @GET("apps/{appId}/versions/{versionId}/customprebuiltintents") - Observable> listCustomPrebuiltIntents(@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); + Observable> listCustomPrebuiltIntents(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @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 addCustomPrebuiltEntity" }) @POST("apps/{appId}/versions/{versionId}/customprebuiltentities") - Observable> addCustomPrebuiltEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addCustomPrebuiltEntity(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, @Header("accept-language") String acceptLanguage, @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 listCustomPrebuiltEntities" }) @GET("apps/{appId}/versions/{versionId}/customprebuiltentities") - Observable> listCustomPrebuiltEntities(@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); + Observable> listCustomPrebuiltEntities(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @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 listCustomPrebuiltModels" }) @GET("apps/{appId}/versions/{versionId}/customprebuiltmodels") - Observable> listCustomPrebuiltModels(@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); + Observable> listCustomPrebuiltModels(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @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 deleteCustomPrebuiltDomain" }) @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); + Observable> deleteCustomPrebuiltDomain(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("domainName") String domainName, @Header("accept-language") String acceptLanguage, @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); + Observable> getHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("hChildId") UUID hChildId, @Header("accept-language") String acceptLanguage, @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}") - 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); + 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("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); + Observable> deleteHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("hChildId") UUID hChildId, @Header("accept-language") String acceptLanguage, @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); + Observable> addHierarchicalEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Body HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, @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); + Observable> addCompositeEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Body CompositeChildModelCreateObject compositeChildModelCreateObject, @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 deleteCompositeEntityChild" }) @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); + Observable> deleteCompositeEntityChild(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("cChildId") UUID cChildId, @Header("accept-language") String acceptLanguage, @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" }) @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> getRegexEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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); + Observable> createRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body RegexModelCreateObject regexEntityExtractorCreateObj, @Header("accept-language") String acceptLanguage, @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" }) @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> getPatternAnyEntityInfos(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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); + Observable> createPatternAnyEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PatternAnyModelCreateObject extractorCreateObject, @Header("accept-language") String acceptLanguage, @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" }) @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> getEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getClosedListEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getRegexEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getCompositeEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getPatternAnyEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createPatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getHierarchicalEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @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); + Observable> createHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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" }) @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> getCustomPrebuiltEntityRoles(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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") - Observable> createCustomPrebuiltEntityRole(@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); + Observable> createCustomPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body EntityRoleCreateObject entityRoleCreateObject, @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 getExplicitList" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist") - Observable> getExplicitList(@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> getExplicitList(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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 addExplicitListItem" }) @POST("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist") - Observable> addExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body ExplicitListItemCreateObject item, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> addExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @Body ExplicitListItemCreateObject item, @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 getRegexEntityEntityInfo" }) @GET("apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}") - Observable> getRegexEntityEntityInfo(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getRegexEntityEntityInfo(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Header("accept-language") String acceptLanguage, @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 updateRegexEntityModel" }) @PUT("apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}") - Observable> updateRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Body RegexModelUpdateObject regexEntityUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Body RegexModelUpdateObject regexEntityUpdateObject, @Header("accept-language") String acceptLanguage, @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 deleteRegexEntityModel" }) @HTTP(path = "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}", method = "DELETE", hasBody = true) - Observable> deleteRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteRegexEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("regexEntityId") UUID regexEntityId, @Header("accept-language") String acceptLanguage, @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 getPatternAnyEntityInfo" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}") - Observable> getPatternAnyEntityInfo(@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> getPatternAnyEntityInfo(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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 updatePatternAnyEntityModel" }) @PUT("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}") - Observable> updatePatternAnyEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body PatternAnyModelUpdateObject patternAnyUpdateObject, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePatternAnyEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Body PatternAnyModelUpdateObject patternAnyUpdateObject, @Header("accept-language") String acceptLanguage, @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 deletePatternAnyEntityModel" }) @HTTP(path = "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}", method = "DELETE", hasBody = true) - Observable> deletePatternAnyEntityModel(@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> deletePatternAnyEntityModel(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Header("accept-language") String acceptLanguage, @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 getEntityRole" }) @GET("apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}") - Observable> getEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}") - Observable> updateEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getPrebuiltEntityRole" }) @GET("apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}") - Observable> getPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updatePrebuiltEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}") - Observable> updatePrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deletePrebuiltEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deletePrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deletePrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getClosedListEntityRole" }) @GET("apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}") - Observable> getClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateClosedListEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}") - Observable> updateClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteClosedListEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteClosedListEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getRegexEntityRole" }) @GET("apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}") - Observable> getRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateRegexEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}") - Observable> updateRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteRegexEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteRegexEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getCompositeEntityRole" }) @GET("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}") - Observable> getCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateCompositeEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}") - Observable> updateCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteCompositeEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteCompositeEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("cEntityId") UUID cEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getPatternAnyEntityRole" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}") - Observable> getPatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getPatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updatePatternAnyEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}") - Observable> updatePatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deletePatternAnyEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deletePatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deletePatternAnyEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getHierarchicalEntityRole" }) @GET("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}") - Observable> getHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateHierarchicalEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}") - Observable> updateHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteHierarchicalEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteHierarchicalEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("hEntityId") UUID hEntityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getCustomEntityRole" }) @GET("apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}") - Observable> getCustomEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getCustomEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 updateCustomPrebuiltEntityRole" }) @PUT("apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}") - Observable> updateCustomPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateCustomPrebuiltEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Body EntityRoleUpdateObject entityRoleUpdateObject, @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 deleteCustomEntityRole" }) @HTTP(path = "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}", method = "DELETE", hasBody = true) - Observable> deleteCustomEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteCustomEntityRole(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("roleId") UUID roleId, @Header("accept-language") String acceptLanguage, @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 getExplicitListItem" }) @GET("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}") - Observable> getExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> getExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @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 updateExplicitListItem" }) @PUT("apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}") - Observable> updateExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @Body ExplicitListItemUpdateObject item, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updateExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @Body ExplicitListItemUpdateObject item, @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 deleteExplicitListItem" }) @HTTP(path = "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}", method = "DELETE", hasBody = true) - Observable> deleteExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteExplicitListItem(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("entityId") UUID entityId, @Path("itemId") long itemId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -626,9 +625,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addIntentWithServiceResponseAsync(UUID appId, String versionId, AddIntentOptionalParameter addIntentOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -650,9 +646,6 @@ public Observable> addIntentWithServiceResponseAsync(UUID * @return the observable to the UUID object */ public Observable> addIntentWithServiceResponseAsync(UUID appId, String versionId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -661,8 +654,7 @@ public Observable> addIntentWithServiceResponseAsync(UUID } ModelCreateObject intentCreateObject = new ModelCreateObject(); intentCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addIntent(appId, versionId, this.client.acceptLanguage(), intentCreateObject, parameterizedHost, this.client.userAgent()) + return service.addIntent(appId, versionId, this.client.acceptLanguage(), intentCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -797,9 +789,6 @@ public List call(ServiceResponse> respo * @return the observable to the List<IntentClassifier> object */ public Observable>> listIntentsWithServiceResponseAsync(UUID appId, String versionId, ListIntentsOptionalParameter listIntentsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -823,17 +812,13 @@ public Observable>> listIntentsWithServic * @return the observable to the List<IntentClassifier> object */ public Observable>> listIntentsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listIntents(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listIntents(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -975,9 +960,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addEntityWithServiceResponseAsync(UUID appId, String versionId, AddEntityOptionalParameter addEntityOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -999,9 +981,6 @@ public Observable> addEntityWithServiceResponseAsync(UUID * @return the observable to the UUID object */ public Observable> addEntityWithServiceResponseAsync(UUID appId, String versionId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1010,8 +989,7 @@ public Observable> addEntityWithServiceResponseAsync(UUID } ModelCreateObject modelCreateObject = new ModelCreateObject(); modelCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addEntity(appId, versionId, this.client.acceptLanguage(), modelCreateObject, parameterizedHost, this.client.userAgent()) + return service.addEntity(appId, versionId, this.client.acceptLanguage(), modelCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1146,9 +1124,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<EntityExtractor> object */ public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, ListEntitiesOptionalParameter listEntitiesOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1172,17 +1147,13 @@ public Observable>> listEntitiesWithServic * @return the observable to the List<EntityExtractor> object */ public Observable>> listEntitiesWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listEntities(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listEntities(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1323,9 +1294,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, HierarchicalEntityModel hierarchicalModelCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1336,8 +1304,7 @@ public Observable> addHierarchicalEntityWithServiceRespons throw new IllegalArgumentException("Parameter hierarchicalModelCreateObject is required and cannot be null."); } Validator.validate(hierarchicalModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addHierarchicalEntity(appId, versionId, hierarchicalModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addHierarchicalEntity(appId, versionId, hierarchicalModelCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1416,9 +1383,6 @@ public List call(ServiceResponse>> listHierarchicalEntitiesWithServiceResponseAsync(UUID appId, String versionId, ListHierarchicalEntitiesOptionalParameter listHierarchicalEntitiesOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1442,17 +1406,13 @@ public Observable>> listHierar * @return the observable to the List<HierarchicalEntityExtractor> object */ public Observable>> listHierarchicalEntitiesWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listHierarchicalEntities(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listHierarchicalEntities(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1593,9 +1553,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, CompositeEntityModel compositeModelCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1606,8 +1563,7 @@ public Observable> addCompositeEntityWithServiceResponseAs throw new IllegalArgumentException("Parameter compositeModelCreateObject is required and cannot be null."); } Validator.validate(compositeModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCompositeEntity(appId, versionId, compositeModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addCompositeEntity(appId, versionId, compositeModelCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1686,9 +1642,6 @@ public List call(ServiceResponse>> listCompositeEntitiesWithServiceResponseAsync(UUID appId, String versionId, ListCompositeEntitiesOptionalParameter listCompositeEntitiesOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1712,17 +1665,13 @@ public Observable>> listComposite * @return the observable to the List<CompositeEntityExtractor> object */ public Observable>> listCompositeEntitiesWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listCompositeEntities(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCompositeEntities(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -1864,9 +1813,6 @@ public List call(ServiceResponse>> listClosedListsWithServiceResponseAsync(UUID appId, String versionId, ListClosedListsOptionalParameter listClosedListsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1890,17 +1836,13 @@ public Observable>> listClosedLi * @return the observable to the List<ClosedListEntityExtractor> object */ public Observable>> listClosedListsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listClosedLists(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listClosedLists(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2041,9 +1983,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addClosedListWithServiceResponseAsync(UUID appId, String versionId, ClosedListModelCreateObject closedListModelCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2054,8 +1993,7 @@ public Observable> addClosedListWithServiceResponseAsync(U throw new IllegalArgumentException("Parameter closedListModelCreateObject is required and cannot be null."); } Validator.validate(closedListModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addClosedList(appId, versionId, closedListModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addClosedList(appId, versionId, closedListModelCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -2133,9 +2071,6 @@ public List call(ServiceResponse>> addPrebuiltWithServiceResponseAsync(UUID appId, String versionId, List prebuiltExtractorNames) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2146,8 +2081,7 @@ public Observable>> addPrebuiltWit throw new IllegalArgumentException("Parameter prebuiltExtractorNames is required and cannot be null."); } Validator.validate(prebuiltExtractorNames); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addPrebuilt(appId, versionId, prebuiltExtractorNames, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addPrebuilt(appId, versionId, prebuiltExtractorNames, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2226,9 +2160,6 @@ public List call(ServiceResponse>> listPrebuiltsWithServiceResponseAsync(UUID appId, String versionId, ListPrebuiltsOptionalParameter listPrebuiltsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2252,17 +2183,13 @@ public Observable>> listPrebuiltsW * @return the observable to the List<PrebuiltEntityExtractor> object */ public Observable>> listPrebuiltsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listPrebuilts(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPrebuilts(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2399,17 +2326,13 @@ public List call(ServiceResponse>> listPrebuiltEntitiesWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listPrebuiltEntities(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listPrebuiltEntities(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2488,9 +2411,6 @@ public List call(ServiceResponse> res * @return the observable to the List<ModelInfoResponse> object */ public Observable>> listModelsWithServiceResponseAsync(UUID appId, String versionId, ListModelsOptionalParameter listModelsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2514,17 +2434,13 @@ public Observable>> listModelsWithServic * @return the observable to the List<ModelInfoResponse> object */ public Observable>> listModelsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listModels(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listModels(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2670,9 +2586,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<LabelTextObject> object */ public Observable>> examplesMethodWithServiceResponseAsync(UUID appId, String versionId, String modelId, ExamplesMethodOptionalParameter examplesMethodOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2700,9 +2613,6 @@ public Observable>> examplesMethodWithServ * @return the observable to the List<LabelTextObject> object */ public Observable>> examplesMethodWithServiceResponseAsync(UUID appId, String versionId, String modelId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2712,8 +2622,7 @@ public Observable>> examplesMethodWithServ if (modelId == null) { throw new IllegalArgumentException("Parameter modelId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.examplesMethod(appId, versionId, modelId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.examplesMethod(appId, versionId, modelId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -2861,9 +2770,6 @@ public IntentClassifier call(ServiceResponse response) { * @return the observable to the IntentClassifier object */ public Observable> getIntentWithServiceResponseAsync(UUID appId, String versionId, UUID intentId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2873,8 +2779,7 @@ public Observable> getIntentWithServiceRespons if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getIntent(appId, versionId, intentId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getIntent(appId, versionId, intentId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -2957,9 +2862,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateIntentWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, UpdateIntentOptionalParameter updateIntentOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2985,9 +2887,6 @@ public Observable> updateIntentWithServiceRespo * @return the observable to the OperationStatus object */ public Observable> updateIntentWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -2999,8 +2898,7 @@ public Observable> updateIntentWithServiceRespo } ModelUpdateObject modelUpdateObject = new ModelUpdateObject(); modelUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateIntent(appId, versionId, intentId, this.client.acceptLanguage(), modelUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateIntent(appId, versionId, intentId, this.client.acceptLanguage(), modelUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3146,9 +3044,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteIntentWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, DeleteIntentOptionalParameter deleteIntentOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3174,9 +3069,6 @@ public Observable> deleteIntentWithServiceRespo * @return the observable to the OperationStatus object */ public Observable> deleteIntentWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Boolean deleteUtterances) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3186,8 +3078,7 @@ public Observable> deleteIntentWithServiceRespo if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteIntent(appId, versionId, intentId, deleteUtterances, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteIntent(appId, versionId, intentId, deleteUtterances, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3328,9 +3219,6 @@ public EntityExtractor call(ServiceResponse response) { * @return the observable to the EntityExtractor object */ public Observable> getEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3340,8 +3228,7 @@ public Observable> getEntityWithServiceResponse if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getEntity(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getEntity(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3424,9 +3311,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UpdateEntityOptionalParameter updateEntityOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3452,9 +3336,6 @@ public Observable> updateEntityWithServiceRespo * @return the observable to the OperationStatus object */ public Observable> updateEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3466,8 +3347,7 @@ public Observable> updateEntityWithServiceRespo } ModelUpdateObject modelUpdateObject = new ModelUpdateObject(); modelUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateEntity(appId, versionId, entityId, this.client.acceptLanguage(), modelUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateEntity(appId, versionId, entityId, this.client.acceptLanguage(), modelUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3608,9 +3488,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteEntityWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3620,8 +3497,7 @@ public Observable> deleteEntityWithServiceRespo if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteEntity(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteEntity(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3699,9 +3575,6 @@ public HierarchicalEntityExtractor call(ServiceResponse> getHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3711,8 +3584,7 @@ public Observable> getHierarchicalE if (hEntityId == null) { throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getHierarchicalEntity(appId, versionId, hEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getHierarchicalEntity(appId, versionId, hEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3794,9 +3666,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3810,8 +3679,7 @@ public Observable> updateHierarchicalEntityWith throw new IllegalArgumentException("Parameter hierarchicalModelUpdateObject is required and cannot be null."); } Validator.validate(hierarchicalModelUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateHierarchicalEntity(appId, versionId, hEntityId, hierarchicalModelUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateHierarchicalEntity(appId, versionId, hEntityId, hierarchicalModelUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3889,9 +3757,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteHierarchicalEntityWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3901,8 +3766,7 @@ public Observable> deleteHierarchicalEntityWith if (hEntityId == null) { throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteHierarchicalEntity(appId, versionId, hEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteHierarchicalEntity(appId, versionId, hEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -3980,9 +3844,6 @@ public CompositeEntityExtractor call(ServiceResponse r * @return the observable to the CompositeEntityExtractor object */ public Observable> getCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -3992,8 +3853,7 @@ public Observable> getCompositeEntityW if (cEntityId == null) { throw new IllegalArgumentException("Parameter cEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getCompositeEntity(appId, versionId, cEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getCompositeEntity(appId, versionId, cEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4075,9 +3935,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, CompositeEntityModel compositeModelUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4091,8 +3948,7 @@ public Observable> updateCompositeEntityWithSer throw new IllegalArgumentException("Parameter compositeModelUpdateObject is required and cannot be null."); } Validator.validate(compositeModelUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateCompositeEntity(appId, versionId, cEntityId, compositeModelUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateCompositeEntity(appId, versionId, cEntityId, compositeModelUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4170,9 +4026,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteCompositeEntityWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4182,8 +4035,7 @@ public Observable> deleteCompositeEntityWithSer if (cEntityId == null) { throw new IllegalArgumentException("Parameter cEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteCompositeEntity(appId, versionId, cEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteCompositeEntity(appId, versionId, cEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4261,9 +4113,6 @@ public ClosedListEntityExtractor call(ServiceResponse * @return the observable to the ClosedListEntityExtractor object */ public Observable> getClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4273,8 +4122,7 @@ public Observable> getClosedListWithS if (clEntityId == null) { throw new IllegalArgumentException("Parameter clEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4356,9 +4204,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4372,8 +4217,7 @@ public Observable> updateClosedListWithServiceR throw new IllegalArgumentException("Parameter closedListModelUpdateObject is required and cannot be null."); } Validator.validate(closedListModelUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateClosedList(appId, versionId, clEntityId, closedListModelUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateClosedList(appId, versionId, clEntityId, closedListModelUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4456,9 +4300,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> patchClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, PatchClosedListOptionalParameter patchClosedListOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4484,9 +4325,6 @@ public Observable> patchClosedListWithServiceRe * @return the observable to the OperationStatus object */ public Observable> patchClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, List subLists) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4499,8 +4337,7 @@ public Observable> patchClosedListWithServiceRe Validator.validate(subLists); ClosedListModelPatchObject closedListModelPatchObject = new ClosedListModelPatchObject(); closedListModelPatchObject.withSubLists(subLists); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.patchClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), closedListModelPatchObject, parameterizedHost, this.client.userAgent()) + return service.patchClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), closedListModelPatchObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4641,9 +4478,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteClosedListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4653,8 +4487,7 @@ public Observable> deleteClosedListWithServiceR if (clEntityId == null) { throw new IllegalArgumentException("Parameter clEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteClosedList(appId, versionId, clEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4732,9 +4565,6 @@ public PrebuiltEntityExtractor call(ServiceResponse res * @return the observable to the PrebuiltEntityExtractor object */ public Observable> getPrebuiltWithServiceResponseAsync(UUID appId, String versionId, UUID prebuiltId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4744,8 +4574,7 @@ public Observable> getPrebuiltWithServi if (prebuiltId == null) { throw new IllegalArgumentException("Parameter prebuiltId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPrebuilt(appId, versionId, prebuiltId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPrebuilt(appId, versionId, prebuiltId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4823,9 +4652,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePrebuiltWithServiceResponseAsync(UUID appId, String versionId, UUID prebuiltId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4835,8 +4661,7 @@ public Observable> deletePrebuiltWithServiceRes if (prebuiltId == null) { throw new IllegalArgumentException("Parameter prebuiltId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePrebuilt(appId, versionId, prebuiltId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePrebuilt(appId, versionId, prebuiltId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -4918,9 +4743,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, int subListId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -4930,8 +4752,7 @@ public Observable> deleteSubListWithServiceResp if (clEntityId == null) { throw new IllegalArgumentException("Parameter clEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteSubList(appId, versionId, clEntityId, subListId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteSubList(appId, versionId, clEntityId, subListId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5017,9 +4838,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5033,8 +4851,7 @@ public Observable> updateSubListWithServiceResp throw new IllegalArgumentException("Parameter wordListBaseUpdateObject is required and cannot be null."); } Validator.validate(wordListBaseUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateSubList(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateSubList(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5117,9 +4934,6 @@ public List call(ServiceResponse>> getIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, GetIntentSuggestionsOptionalParameter getIntentSuggestionsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5145,9 +4959,6 @@ public Observable>> getIntentSugg * @return the observable to the List<IntentsSuggestionExample> object */ public Observable>> getIntentSuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5157,8 +4968,7 @@ public Observable>> getIntentSugg if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getIntentSuggestions(appId, versionId, intentId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getIntentSuggestions(appId, versionId, intentId, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -5304,9 +5114,6 @@ public List call(ServiceResponse>> getEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, GetEntitySuggestionsOptionalParameter getEntitySuggestionsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5332,9 +5139,6 @@ public Observable>> getEntitySug * @return the observable to the List<EntitiesSuggestionExample> object */ public Observable>> getEntitySuggestionsWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5344,8 +5148,7 @@ public Observable>> getEntitySug if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getEntitySuggestions(appId, versionId, entityId, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getEntitySuggestions(appId, versionId, entityId, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -5490,9 +5293,6 @@ public Integer call(ServiceResponse response) { * @return the observable to the Integer object */ public Observable> addSubListWithServiceResponseAsync(UUID appId, String versionId, UUID clEntityId, WordListObject wordListCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5506,8 +5306,7 @@ public Observable> addSubListWithServiceResponseAsync(U throw new IllegalArgumentException("Parameter wordListCreateObject is required and cannot be null."); } Validator.validate(wordListCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addSubList(appId, versionId, clEntityId, wordListCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addSubList(appId, versionId, clEntityId, wordListCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5586,9 +5385,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<UUID> object */ public Observable>> addCustomPrebuiltDomainWithServiceResponseAsync(UUID appId, String versionId, AddCustomPrebuiltDomainModelsOptionalParameter addCustomPrebuiltDomainOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5610,9 +5406,6 @@ public Observable>> addCustomPrebuiltDomainWithServic * @return the observable to the List<UUID> object */ public Observable>> addCustomPrebuiltDomainWithServiceResponseAsync(UUID appId, String versionId, String domainName) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5621,8 +5414,7 @@ public Observable>> addCustomPrebuiltDomainWithServic } PrebuiltDomainCreateBaseObject prebuiltDomainObject = new PrebuiltDomainCreateBaseObject(); prebuiltDomainObject.withDomainName(domainName); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCustomPrebuiltDomain(appId, versionId, this.client.acceptLanguage(), prebuiltDomainObject, parameterizedHost, this.client.userAgent()) + return service.addCustomPrebuiltDomain(appId, versionId, this.client.acceptLanguage(), prebuiltDomainObject, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -5756,9 +5548,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addCustomPrebuiltIntentWithServiceResponseAsync(UUID appId, String versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5769,8 +5558,7 @@ public Observable> addCustomPrebuiltIntentWithServiceRespo throw new IllegalArgumentException("Parameter prebuiltDomainModelCreateObject is required and cannot be null."); } Validator.validate(prebuiltDomainModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCustomPrebuiltIntent(appId, versionId, prebuiltDomainModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addCustomPrebuiltIntent(appId, versionId, prebuiltDomainModelCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -5844,17 +5632,13 @@ public List call(ServiceResponse> respo * @return the observable to the List<IntentClassifier> object */ public Observable>> listCustomPrebuiltIntentsWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listCustomPrebuiltIntents(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCustomPrebuiltIntents(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -5932,9 +5716,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addCustomPrebuiltEntityWithServiceResponseAsync(UUID appId, String versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -5945,8 +5726,7 @@ public Observable> addCustomPrebuiltEntityWithServiceRespo throw new IllegalArgumentException("Parameter prebuiltDomainModelCreateObject is required and cannot be null."); } Validator.validate(prebuiltDomainModelCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCustomPrebuiltEntity(appId, versionId, prebuiltDomainModelCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addCustomPrebuiltEntity(appId, versionId, prebuiltDomainModelCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6020,17 +5800,13 @@ public List call(ServiceResponse> respons * @return the observable to the List<EntityExtractor> object */ public Observable>> listCustomPrebuiltEntitiesWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listCustomPrebuiltEntities(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCustomPrebuiltEntities(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -6104,17 +5880,13 @@ public List call(ServiceResponse> * @return the observable to the List<CustomPrebuiltModel> object */ public Observable>> listCustomPrebuiltModelsWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.listCustomPrebuiltModels(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.listCustomPrebuiltModels(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -6192,9 +5964,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteCustomPrebuiltDomainWithServiceResponseAsync(UUID appId, String versionId, String domainName) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6204,8 +5973,7 @@ public Observable> deleteCustomPrebuiltDomainWi if (domainName == null) { throw new IllegalArgumentException("Parameter domainName is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteCustomPrebuiltDomain(appId, versionId, domainName, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteCustomPrebuiltDomain(appId, versionId, domainName, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6287,9 +6055,6 @@ public HierarchicalChildEntity call(ServiceResponse res * @return the observable to the HierarchicalChildEntity object */ public Observable> getHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID hChildId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6302,8 +6067,7 @@ public Observable> getHierarchicalEntit if (hChildId == null) { throw new IllegalArgumentException("Parameter hChildId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6390,9 +6154,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID hChildId, UpdateHierarchicalEntityChildOptionalParameter updateHierarchicalEntityChildOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6422,9 +6183,6 @@ public Observable> updateHierarchicalEntityChil * @return the observable to the OperationStatus object */ public Observable> updateHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID hChildId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6439,8 +6197,7 @@ public Observable> updateHierarchicalEntityChil } HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject = new HierarchicalChildModelUpdateObject(); hierarchicalChildModelUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), hierarchicalChildModelUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), hierarchicalChildModelUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6592,9 +6349,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID hChildId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6607,8 +6361,7 @@ public Observable> deleteHierarchicalEntityChil if (hChildId == null) { throw new IllegalArgumentException("Parameter hChildId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteHierarchicalEntityChild(appId, versionId, hEntityId, hChildId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6691,9 +6444,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, AddHierarchicalEntityChildOptionalParameter addHierarchicalEntityChildOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6719,9 +6469,6 @@ public Observable> addHierarchicalEntityChildWithServiceRe * @return the observable to the UUID object */ public Observable> addHierarchicalEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6733,8 +6480,7 @@ public Observable> addHierarchicalEntityChildWithServiceRe } HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject = new HierarchicalChildModelCreateObject(); hierarchicalChildModelCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addHierarchicalEntityChild(appId, versionId, hEntityId, this.client.acceptLanguage(), hierarchicalChildModelCreateObject, parameterizedHost, this.client.userAgent()) + return service.addHierarchicalEntityChild(appId, versionId, hEntityId, this.client.acceptLanguage(), hierarchicalChildModelCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -6880,9 +6626,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> addCompositeEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, AddCompositeEntityChildOptionalParameter addCompositeEntityChildOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6908,9 +6651,6 @@ public Observable> addCompositeEntityChildWithServiceRespo * @return the observable to the UUID object */ public Observable> addCompositeEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -6922,8 +6662,7 @@ public Observable> addCompositeEntityChildWithServiceRespo } CompositeChildModelCreateObject compositeChildModelCreateObject = new CompositeChildModelCreateObject(); compositeChildModelCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addCompositeEntityChild(appId, versionId, cEntityId, this.client.acceptLanguage(), compositeChildModelCreateObject, parameterizedHost, this.client.userAgent()) + return service.addCompositeEntityChild(appId, versionId, cEntityId, this.client.acceptLanguage(), compositeChildModelCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7068,9 +6807,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteCompositeEntityChildWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, UUID cChildId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7083,8 +6819,7 @@ public Observable> deleteCompositeEntityChildWi if (cChildId == null) { throw new IllegalArgumentException("Parameter cChildId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteCompositeEntityChild(appId, versionId, cEntityId, cChildId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteCompositeEntityChild(appId, versionId, cEntityId, cChildId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7163,9 +6898,6 @@ public List call(ServiceResponse>> getRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, GetRegexEntityInfosOptionalParameter getRegexEntityInfosOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7189,17 +6921,13 @@ public Observable>> getRegexEntityInf * @return the observable to the List<RegexEntityExtractor> object */ public Observable>> getRegexEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getRegexEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getRegexEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -7340,9 +7068,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createRegexEntityModelWithServiceResponseAsync(UUID appId, String versionId, RegexModelCreateObject regexEntityExtractorCreateObj) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7353,8 +7078,7 @@ public Observable> createRegexEntityModelWithServiceRespon throw new IllegalArgumentException("Parameter regexEntityExtractorCreateObj is required and cannot be null."); } Validator.validate(regexEntityExtractorCreateObj); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createRegexEntityModel(appId, versionId, regexEntityExtractorCreateObj, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.createRegexEntityModel(appId, versionId, regexEntityExtractorCreateObj, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7433,9 +7157,6 @@ public List call(ServiceResponse>> getPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, GetPatternAnyEntityInfosOptionalParameter getPatternAnyEntityInfosOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7459,17 +7180,13 @@ public Observable>> getPatternAn * @return the observable to the List<PatternAnyEntityExtractor> object */ public Observable>> getPatternAnyEntityInfosWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getPatternAnyEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPatternAnyEntityInfos(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -7610,9 +7327,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createPatternAnyEntityModelWithServiceResponseAsync(UUID appId, String versionId, PatternAnyModelCreateObject extractorCreateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7623,8 +7337,7 @@ public Observable> createPatternAnyEntityModelWithServiceR throw new IllegalArgumentException("Parameter extractorCreateObject is required and cannot be null."); } Validator.validate(extractorCreateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createPatternAnyEntityModel(appId, versionId, extractorCreateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.createPatternAnyEntityModel(appId, versionId, extractorCreateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7702,9 +7415,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7714,8 +7424,7 @@ public Observable>> getEntityRolesWithServiceRe if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -7798,9 +7507,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateEntityRoleOptionalParameter createEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7826,9 +7532,6 @@ public Observable> createEntityRoleWithServiceResponseAsyn * @return the observable to the UUID object */ public Observable> createEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7840,8 +7543,7 @@ public Observable> createEntityRoleWithServiceResponseAsyn } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -7982,9 +7684,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -7994,8 +7693,7 @@ public Observable>> getPrebuiltEntityRolesWithS if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -8078,9 +7776,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreatePrebuiltEntityRoleOptionalParameter createPrebuiltEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8106,9 +7801,6 @@ public Observable> createPrebuiltEntityRoleWithServiceResp * @return the observable to the UUID object */ public Observable> createPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8120,8 +7812,7 @@ public Observable> createPrebuiltEntityRoleWithServiceResp } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createPrebuiltEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createPrebuiltEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -8262,9 +7953,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getClosedListEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8274,8 +7962,7 @@ public Observable>> getClosedListEntityRolesWit if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getClosedListEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getClosedListEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -8358,9 +8045,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateClosedListEntityRoleOptionalParameter createClosedListEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8386,9 +8070,6 @@ public Observable> createClosedListEntityRoleWithServiceRe * @return the observable to the UUID object */ public Observable> createClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8400,8 +8081,7 @@ public Observable> createClosedListEntityRoleWithServiceRe } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createClosedListEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createClosedListEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -8542,9 +8222,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getRegexEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8554,8 +8231,7 @@ public Observable>> getRegexEntityRolesWithServ if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getRegexEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getRegexEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -8638,9 +8314,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateRegexEntityRoleOptionalParameter createRegexEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8666,9 +8339,6 @@ public Observable> createRegexEntityRoleWithServiceRespons * @return the observable to the UUID object */ public Observable> createRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8680,8 +8350,7 @@ public Observable> createRegexEntityRoleWithServiceRespons } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createRegexEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createRegexEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -8822,9 +8491,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getCompositeEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8834,8 +8500,7 @@ public Observable>> getCompositeEntityRolesWith if (cEntityId == null) { throw new IllegalArgumentException("Parameter cEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getCompositeEntityRoles(appId, versionId, cEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getCompositeEntityRoles(appId, versionId, cEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -8918,9 +8583,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, CreateCompositeEntityRoleOptionalParameter createCompositeEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8946,9 +8608,6 @@ public Observable> createCompositeEntityRoleWithServiceRes * @return the observable to the UUID object */ public Observable> createCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -8960,8 +8619,7 @@ public Observable> createCompositeEntityRoleWithServiceRes } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createCompositeEntityRole(appId, versionId, cEntityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createCompositeEntityRole(appId, versionId, cEntityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -9102,9 +8760,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getPatternAnyEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9114,8 +8769,7 @@ public Observable>> getPatternAnyEntityRolesWit if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPatternAnyEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPatternAnyEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -9198,9 +8852,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createPatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreatePatternAnyEntityRoleOptionalParameter createPatternAnyEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9226,9 +8877,6 @@ public Observable> createPatternAnyEntityRoleWithServiceRe * @return the observable to the UUID object */ public Observable> createPatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9240,8 +8888,7 @@ public Observable> createPatternAnyEntityRoleWithServiceRe } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createPatternAnyEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createPatternAnyEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -9382,9 +9029,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getHierarchicalEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9394,8 +9038,7 @@ public Observable>> getHierarchicalEntityRolesW if (hEntityId == null) { throw new IllegalArgumentException("Parameter hEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getHierarchicalEntityRoles(appId, versionId, hEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getHierarchicalEntityRoles(appId, versionId, hEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -9478,9 +9121,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, CreateHierarchicalEntityRoleOptionalParameter createHierarchicalEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9506,9 +9146,6 @@ public Observable> createHierarchicalEntityRoleWithService * @return the observable to the UUID object */ public Observable> createHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9520,8 +9157,7 @@ public Observable> createHierarchicalEntityRoleWithService } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createHierarchicalEntityRole(appId, versionId, hEntityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createHierarchicalEntityRole(appId, versionId, hEntityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -9662,9 +9298,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<EntityRole> object */ public Observable>> getCustomPrebuiltEntityRolesWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9674,8 +9307,7 @@ public Observable>> getCustomPrebuiltEntityRole if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getCustomPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getCustomPrebuiltEntityRoles(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -9758,9 +9390,6 @@ public UUID call(ServiceResponse response) { * @return the observable to the UUID object */ public Observable> createCustomPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreateCustomPrebuiltEntityRoleOptionalParameter createCustomPrebuiltEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9786,9 +9415,6 @@ public Observable> createCustomPrebuiltEntityRoleWithServi * @return the observable to the UUID object */ public Observable> createCustomPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9800,8 +9426,7 @@ public Observable> createCustomPrebuiltEntityRoleWithServi } EntityRoleCreateObject entityRoleCreateObject = new EntityRoleCreateObject(); entityRoleCreateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.createCustomPrebuiltEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, parameterizedHost, this.client.userAgent()) + return service.createCustomPrebuiltEntityRole(appId, versionId, entityId, this.client.acceptLanguage(), entityRoleCreateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -9942,9 +9567,6 @@ public List call(ServiceResponse> respo * @return the observable to the List<ExplicitListItem> object */ public Observable>> getExplicitListWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -9954,8 +9576,7 @@ public Observable>> getExplicitListWithSe if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getExplicitList(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getExplicitList(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -10038,9 +9659,6 @@ public Integer call(ServiceResponse response) { * @return the observable to the Integer object */ public Observable> addExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, AddExplicitListItemOptionalParameter addExplicitListItemOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10066,9 +9684,6 @@ public Observable> addExplicitListItemWithServiceRespon * @return the observable to the Integer object */ public Observable> addExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, String explicitListItem) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10080,8 +9695,7 @@ public Observable> addExplicitListItemWithServiceRespon } ExplicitListItemCreateObject item = new ExplicitListItemCreateObject(); item.withExplicitListItem(explicitListItem); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addExplicitListItem(appId, versionId, entityId, this.client.acceptLanguage(), item, parameterizedHost, this.client.userAgent()) + return service.addExplicitListItem(appId, versionId, entityId, this.client.acceptLanguage(), item, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10222,9 +9836,6 @@ public RegexEntityExtractor call(ServiceResponse response) * @return the observable to the RegexEntityExtractor object */ public Observable> getRegexEntityEntityInfoWithServiceResponseAsync(UUID appId, String versionId, UUID regexEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10234,8 +9845,7 @@ public Observable> getRegexEntityEntityInf if (regexEntityId == null) { throw new IllegalArgumentException("Parameter regexEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getRegexEntityEntityInfo(appId, versionId, regexEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getRegexEntityEntityInfo(appId, versionId, regexEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10317,9 +9927,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateRegexEntityModelWithServiceResponseAsync(UUID appId, String versionId, UUID regexEntityId, RegexModelUpdateObject regexEntityUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10333,8 +9940,7 @@ public Observable> updateRegexEntityModelWithSe throw new IllegalArgumentException("Parameter regexEntityUpdateObject is required and cannot be null."); } Validator.validate(regexEntityUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateRegexEntityModel(appId, versionId, regexEntityId, regexEntityUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updateRegexEntityModel(appId, versionId, regexEntityId, regexEntityUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10412,9 +10018,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteRegexEntityModelWithServiceResponseAsync(UUID appId, String versionId, UUID regexEntityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10424,8 +10027,7 @@ public Observable> deleteRegexEntityModelWithSe if (regexEntityId == null) { throw new IllegalArgumentException("Parameter regexEntityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteRegexEntityModel(appId, versionId, regexEntityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteRegexEntityModel(appId, versionId, regexEntityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10503,9 +10105,6 @@ public PatternAnyEntityExtractor call(ServiceResponse * @return the observable to the PatternAnyEntityExtractor object */ public Observable> getPatternAnyEntityInfoWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10515,8 +10114,7 @@ public Observable> getPatternAnyEntit if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPatternAnyEntityInfo(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPatternAnyEntityInfo(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10598,9 +10196,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updatePatternAnyEntityModelWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, PatternAnyModelUpdateObject patternAnyUpdateObject) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10614,8 +10209,7 @@ public Observable> updatePatternAnyEntityModelW throw new IllegalArgumentException("Parameter patternAnyUpdateObject is required and cannot be null."); } Validator.validate(patternAnyUpdateObject); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePatternAnyEntityModel(appId, versionId, entityId, patternAnyUpdateObject, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updatePatternAnyEntityModel(appId, versionId, entityId, patternAnyUpdateObject, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10693,9 +10287,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePatternAnyEntityModelWithServiceResponseAsync(UUID appId, String versionId, UUID entityId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10705,8 +10296,7 @@ public Observable> deletePatternAnyEntityModelW if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePatternAnyEntityModel(appId, versionId, entityId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePatternAnyEntityModel(appId, versionId, entityId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10788,9 +10378,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10803,8 +10390,7 @@ public Observable> getEntityRoleWithServiceResponseA if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -10891,9 +10477,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateEntityRoleOptionalParameter updateEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10923,9 +10506,6 @@ public Observable> updateEntityRoleWithServiceR * @return the observable to the OperationStatus object */ public Observable> updateEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -10940,8 +10520,7 @@ public Observable> updateEntityRoleWithServiceR } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11093,9 +10672,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11108,8 +10684,7 @@ public Observable> deleteEntityRoleWithServiceR if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11191,9 +10766,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11206,8 +10778,7 @@ public Observable> getPrebuiltEntityRoleWithServiceR if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11294,9 +10865,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updatePrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePrebuiltEntityRoleOptionalParameter updatePrebuiltEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11326,9 +10894,6 @@ public Observable> updatePrebuiltEntityRoleWith * @return the observable to the OperationStatus object */ public Observable> updatePrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11343,8 +10908,7 @@ public Observable> updatePrebuiltEntityRoleWith } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updatePrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11496,9 +11060,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11511,8 +11072,7 @@ public Observable> deletePrebuiltEntityRoleWith if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11594,9 +11154,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11609,8 +11166,7 @@ public Observable> getClosedListEntityRoleWithServic if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11697,9 +11253,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateClosedListEntityRoleOptionalParameter updateClosedListEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11729,9 +11282,6 @@ public Observable> updateClosedListEntityRoleWi * @return the observable to the OperationStatus object */ public Observable> updateClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11746,8 +11296,7 @@ public Observable> updateClosedListEntityRoleWi } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11899,9 +11448,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteClosedListEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -11914,8 +11460,7 @@ public Observable> deleteClosedListEntityRoleWi if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteClosedListEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -11997,9 +11542,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12012,8 +11554,7 @@ public Observable> getRegexEntityRoleWithServiceResp if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12100,9 +11641,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateRegexEntityRoleOptionalParameter updateRegexEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12132,9 +11670,6 @@ public Observable> updateRegexEntityRoleWithSer * @return the observable to the OperationStatus object */ public Observable> updateRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12149,8 +11684,7 @@ public Observable> updateRegexEntityRoleWithSer } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12302,9 +11836,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteRegexEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12317,8 +11848,7 @@ public Observable> deleteRegexEntityRoleWithSer if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteRegexEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12400,9 +11930,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12415,8 +11942,7 @@ public Observable> getCompositeEntityRoleWithService if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12503,9 +12029,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId, UpdateCompositeEntityRoleOptionalParameter updateCompositeEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12535,9 +12058,6 @@ public Observable> updateCompositeEntityRoleWit * @return the observable to the OperationStatus object */ public Observable> updateCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12552,8 +12072,7 @@ public Observable> updateCompositeEntityRoleWit } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12705,9 +12224,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteCompositeEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID cEntityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12720,8 +12236,7 @@ public Observable> deleteCompositeEntityRoleWit if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteCompositeEntityRole(appId, versionId, cEntityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12803,9 +12318,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getPatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12818,8 +12330,7 @@ public Observable> getPatternAnyEntityRoleWithServic if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getPatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -12906,9 +12417,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updatePatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdatePatternAnyEntityRoleOptionalParameter updatePatternAnyEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12938,9 +12446,6 @@ public Observable> updatePatternAnyEntityRoleWi * @return the observable to the OperationStatus object */ public Observable> updatePatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -12955,8 +12460,7 @@ public Observable> updatePatternAnyEntityRoleWi } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updatePatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13108,9 +12612,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePatternAnyEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13123,8 +12624,7 @@ public Observable> deletePatternAnyEntityRoleWi if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePatternAnyEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13206,9 +12706,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13221,8 +12718,7 @@ public Observable> getHierarchicalEntityRoleWithServ if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13309,9 +12805,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId, UpdateHierarchicalEntityRoleOptionalParameter updateHierarchicalEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13341,9 +12834,6 @@ public Observable> updateHierarchicalEntityRole * @return the observable to the OperationStatus object */ public Observable> updateHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13358,8 +12848,7 @@ public Observable> updateHierarchicalEntityRole } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13511,9 +13000,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteHierarchicalEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID hEntityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13526,8 +13012,7 @@ public Observable> deleteHierarchicalEntityRole if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteHierarchicalEntityRole(appId, versionId, hEntityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13609,9 +13094,6 @@ public EntityRole call(ServiceResponse response) { * @return the observable to the EntityRole object */ public Observable> getCustomEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13624,8 +13106,7 @@ public Observable> getCustomEntityRoleWithServiceRes if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getCustomEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getCustomEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13712,9 +13193,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateCustomPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, UpdateCustomPrebuiltEntityRoleOptionalParameter updateCustomPrebuiltEntityRoleOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13744,9 +13222,6 @@ public Observable> updateCustomPrebuiltEntityRo * @return the observable to the OperationStatus object */ public Observable> updateCustomPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId, String name) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13761,8 +13236,7 @@ public Observable> updateCustomPrebuiltEntityRo } EntityRoleUpdateObject entityRoleUpdateObject = new EntityRoleUpdateObject(); entityRoleUpdateObject.withName(name); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateCustomPrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, parameterizedHost, this.client.userAgent()) + return service.updateCustomPrebuiltEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), entityRoleUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -13914,9 +13388,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteCustomEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, UUID roleId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -13929,8 +13400,7 @@ public Observable> deleteCustomEntityRoleWithSe if (roleId == null) { throw new IllegalArgumentException("Parameter roleId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteCustomEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteCustomEntityRole(appId, versionId, entityId, roleId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -14012,9 +13482,6 @@ public ExplicitListItem call(ServiceResponse response) { * @return the observable to the ExplicitListItem object */ public Observable> getExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -14024,8 +13491,7 @@ public Observable> getExplicitListItemWithServ if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -14112,9 +13578,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId, UpdateExplicitListItemOptionalParameter updateExplicitListItemOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -14141,9 +13604,6 @@ public Observable> updateExplicitListItemWithSe * @return the observable to the OperationStatus object */ public Observable> updateExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId, String explicitListItem) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -14155,8 +13615,7 @@ public Observable> updateExplicitListItemWithSe } ExplicitListItemUpdateObject item = new ExplicitListItemUpdateObject(); item.withExplicitListItem(explicitListItem); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updateExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), item, parameterizedHost, this.client.userAgent()) + return service.updateExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), item, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -14308,9 +13767,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteExplicitListItemWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, long itemId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -14320,8 +13776,7 @@ public Observable> deleteExplicitListItemWithSe if (entityId == null) { throw new IllegalArgumentException("Parameter entityId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteExplicitListItem(appId, versionId, entityId, itemId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java index 0c32bf703323..ca3cd90b31f2 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PatternsImpl.java @@ -12,7 +12,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.GetIntentPatternsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns; -import com.google.common.base.Joiner; 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.OperationStatus; @@ -48,7 +47,7 @@ public class PatternsImpl implements Patterns { /** The Retrofit service to perform REST calls. */ private PatternsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of PatternsImpl. @@ -56,7 +55,7 @@ public class PatternsImpl implements Patterns { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public PatternsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public PatternsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(PatternsService.class); this.client = client; } @@ -68,35 +67,35 @@ public PatternsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface PatternsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Patterns addPattern" }) @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); + Observable> addPattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body PatternRuleCreateObject pattern, @Header("accept-language") String acceptLanguage, @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" }) @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> getPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @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") - Observable> updatePatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patterns, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patterns, @Header("accept-language") String acceptLanguage, @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 batchAddPatterns" }) @POST("apps/{appId}/versions/{versionId}/patternrules") - Observable> batchAddPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patterns, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> batchAddPatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patterns, @Header("accept-language") String acceptLanguage, @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 deletePatterns" }) @HTTP(path = "apps/{appId}/versions/{versionId}/patternrules", method = "DELETE", hasBody = true) - Observable> deletePatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patternIds, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deletePatterns(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body List patternIds, @Header("accept-language") String acceptLanguage, @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 updatePattern" }) @PUT("apps/{appId}/versions/{versionId}/patternrules/{patternId}") - Observable> updatePattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("patternId") UUID patternId, @Body PatternRuleUpdateObject pattern, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> updatePattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("patternId") UUID patternId, @Body PatternRuleUpdateObject pattern, @Header("accept-language") String acceptLanguage, @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 deletePattern" }) @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); + Observable> deletePattern(@Path("appId") UUID appId, @Path("versionId") String versionId, @Path("patternId") UUID patternId, @Header("accept-language") String acceptLanguage, @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" }) @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> 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("User-Agent") String userAgent); } @@ -157,9 +156,6 @@ public PatternRuleInfo call(ServiceResponse response) { * @return the observable to the PatternRuleInfo object */ public Observable> addPatternWithServiceResponseAsync(UUID appId, String versionId, PatternRuleCreateObject pattern) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -170,8 +166,7 @@ public Observable> addPatternWithServiceRespons throw new IllegalArgumentException("Parameter pattern is required and cannot be null."); } Validator.validate(pattern); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.addPattern(appId, versionId, pattern, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.addPattern(appId, versionId, pattern, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -250,9 +245,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<PatternRuleInfo> object */ public Observable>> getPatternsWithServiceResponseAsync(UUID appId, String versionId, GetPatternsOptionalParameter getPatternsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -276,17 +268,13 @@ public Observable>> getPatternsWithService * @return the observable to the List<PatternRuleInfo> object */ public Observable>> getPatternsWithServiceResponseAsync(UUID appId, String versionId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getPatterns(appId, versionId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getPatterns(appId, versionId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -427,9 +415,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<PatternRuleInfo> object */ public Observable>> updatePatternsWithServiceResponseAsync(UUID appId, String versionId, List patterns) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -440,8 +425,7 @@ public Observable>> updatePatternsWithServ throw new IllegalArgumentException("Parameter patterns is required and cannot be null."); } Validator.validate(patterns); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePatterns(appId, versionId, patterns, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updatePatterns(appId, versionId, patterns, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -519,9 +503,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<PatternRuleInfo> object */ public Observable>> batchAddPatternsWithServiceResponseAsync(UUID appId, String versionId, List patterns) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -532,8 +513,7 @@ public Observable>> batchAddPatternsWithSe throw new IllegalArgumentException("Parameter patterns is required and cannot be null."); } Validator.validate(patterns); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.batchAddPatterns(appId, versionId, patterns, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.batchAddPatterns(appId, versionId, patterns, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -611,9 +591,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePatternsWithServiceResponseAsync(UUID appId, String versionId, List patternIds) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -624,8 +601,7 @@ public Observable> deletePatternsWithServiceRes throw new IllegalArgumentException("Parameter patternIds is required and cannot be null."); } Validator.validate(patternIds); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePatterns(appId, versionId, patternIds, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePatterns(appId, versionId, patternIds, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -707,9 +683,6 @@ public PatternRuleInfo call(ServiceResponse response) { * @return the observable to the PatternRuleInfo object */ public Observable> updatePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId, PatternRuleUpdateObject pattern) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -723,8 +696,7 @@ public Observable> updatePatternWithServiceResp throw new IllegalArgumentException("Parameter pattern is required and cannot be null."); } Validator.validate(pattern); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.updatePattern(appId, versionId, patternId, pattern, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.updatePattern(appId, versionId, patternId, pattern, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -802,9 +774,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deletePatternWithServiceResponseAsync(UUID appId, String versionId, UUID patternId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -814,8 +783,7 @@ public Observable> deletePatternWithServiceResp if (patternId == null) { throw new IllegalArgumentException("Parameter patternId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deletePattern(appId, versionId, patternId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deletePattern(appId, versionId, patternId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -898,9 +866,6 @@ public List call(ServiceResponse> respons * @return the observable to the List<PatternRuleInfo> object */ public Observable>> getIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, GetIntentPatternsOptionalParameter getIntentPatternsOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -928,9 +893,6 @@ public Observable>> getIntentPatternsWithS * @return the observable to the List<PatternRuleInfo> object */ public Observable>> getIntentPatternsWithServiceResponseAsync(UUID appId, String versionId, UUID intentId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -940,8 +902,7 @@ public Observable>> getIntentPatternsWithS if (intentId == null) { throw new IllegalArgumentException("Parameter intentId is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.getIntentPatterns(appId, versionId, intentId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getIntentPatterns(appId, versionId, intentId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java index df2d1d12cce0..22667ce992e0 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/PermissionsImpl.java @@ -13,7 +13,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.UpdatePermissionsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions; -import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.CollaboratorsArray; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; @@ -48,7 +47,7 @@ public class PermissionsImpl implements Permissions { /** The Retrofit service to perform REST calls. */ private PermissionsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of PermissionsImpl. @@ -56,7 +55,7 @@ public class PermissionsImpl implements Permissions { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public PermissionsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public PermissionsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(PermissionsService.class); this.client = client; } @@ -68,19 +67,19 @@ public PermissionsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface PermissionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions list" }) @GET("apps/{appId}/permissions") - Observable> list(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> list(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions add" }) @POST("apps/{appId}/permissions") - Observable> add(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body UserCollaborator userToAdd, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> add(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body UserCollaborator userToAdd, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions delete" }) @HTTP(path = "apps/{appId}/permissions", method = "DELETE", hasBody = true) - Observable> delete(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body UserCollaborator userToDelete, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> delete(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body UserCollaborator userToDelete, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Permissions update" }) @PUT("apps/{appId}/permissions") - Observable> update(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body CollaboratorsArray collaborators, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> update(@Path("appId") UUID appId, @Header("accept-language") String acceptLanguage, @Body CollaboratorsArray collaborators, @Header("User-Agent") String userAgent); } @@ -133,14 +132,10 @@ public UserAccessList call(ServiceResponse response) { * @return the observable to the UserAccessList object */ public Observable> listWithServiceResponseAsync(UUID appId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.list(appId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.list(appId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -215,9 +210,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> addWithServiceResponseAsync(UUID appId, AddPermissionsOptionalParameter addOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -235,16 +227,12 @@ public Observable> addWithServiceResponseAsync( * @return the observable to the OperationStatus object */ public Observable> addWithServiceResponseAsync(UUID appId, String email) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } UserCollaborator userToAdd = new UserCollaborator(); userToAdd.withEmail(email); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.add(appId, this.client.acceptLanguage(), userToAdd, parameterizedHost, this.client.userAgent()) + return service.add(appId, this.client.acceptLanguage(), userToAdd, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -368,9 +356,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteWithServiceResponseAsync(UUID appId, DeletePermissionsOptionalParameter deleteOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -388,16 +373,12 @@ public Observable> deleteWithServiceResponseAsy * @return the observable to the OperationStatus object */ public Observable> deleteWithServiceResponseAsync(UUID appId, String email) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } UserCollaborator userToDelete = new UserCollaborator(); userToDelete.withEmail(email); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.delete(appId, this.client.acceptLanguage(), userToDelete, parameterizedHost, this.client.userAgent()) + return service.delete(appId, this.client.acceptLanguage(), userToDelete, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -521,9 +502,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateWithServiceResponseAsync(UUID appId, UpdatePermissionsOptionalParameter updateOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -541,17 +519,13 @@ public Observable> updateWithServiceResponseAsy * @return the observable to the OperationStatus object */ public Observable> updateWithServiceResponseAsync(UUID appId, List emails) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } Validator.validate(emails); CollaboratorsArray collaborators = new CollaboratorsArray(); collaborators.withEmails(emails); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.update(appId, this.client.acceptLanguage(), collaborators, parameterizedHost, this.client.userAgent()) + return service.update(appId, this.client.acceptLanguage(), collaborators, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/TrainsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/TrainsImpl.java index 0920422ec287..241d53738494 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/TrainsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/TrainsImpl.java @@ -10,7 +10,6 @@ import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Trains; -import com.google.common.base.Joiner; import com.google.common.reflect.TypeToken; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.EnqueueTrainingResponse; import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ErrorResponseException; @@ -39,7 +38,7 @@ public class TrainsImpl implements Trains { /** The Retrofit service to perform REST calls. */ private TrainsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of TrainsImpl. @@ -47,7 +46,7 @@ public class TrainsImpl implements Trains { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public TrainsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public TrainsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(TrainsService.class); this.client = client; } @@ -59,11 +58,11 @@ public TrainsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface TrainsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Trains trainVersion" }) @POST("apps/{appId}/versions/{versionId}/train") - Observable> trainVersion(@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); + Observable> trainVersion(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Trains getStatus" }) @GET("apps/{appId}/versions/{versionId}/train") - Observable> getStatus(@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); + Observable> getStatus(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -120,17 +119,13 @@ public EnqueueTrainingResponse call(ServiceResponse res * @return the observable to the EnqueueTrainingResponse object */ public Observable> trainVersionWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.trainVersion(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.trainVersion(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -204,17 +199,13 @@ public List call(ServiceResponse> res * @return the observable to the List<ModelTrainingInfo> object */ public Observable>> getStatusWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.getStatus(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.getStatus(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java index 555a7bdedf4f..2dcccd4157ac 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/VersionsImpl.java @@ -14,7 +14,6 @@ import com.microsoft.azure.cognitiveservices.language.luis.authoring.models.ImportMethodVersionsOptionalParameter; import retrofit2.Retrofit; import com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions; -import com.google.common.base.Joiner; 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.LuisApp; @@ -50,7 +49,7 @@ public class VersionsImpl implements Versions { /** The Retrofit service to perform REST calls. */ private VersionsService service; /** The service client containing this operation class. */ - private LUISAuthoringAPIImpl client; + private LUISAuthoringClientImpl client; /** * Initializes an instance of VersionsImpl. @@ -58,7 +57,7 @@ public class VersionsImpl implements Versions { * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ - public VersionsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { + public VersionsImpl(Retrofit retrofit, LUISAuthoringClientImpl client) { this.service = retrofit.create(VersionsService.class); this.client = client; } @@ -70,35 +69,35 @@ public VersionsImpl(Retrofit retrofit, LUISAuthoringAPIImpl client) { interface VersionsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions clone" }) @POST("apps/{appId}/versions/{versionId}/clone") - Observable> clone(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body TaskUpdateObject versionCloneObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> clone(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body TaskUpdateObject versionCloneObject, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions list" }) @GET("apps/{appId}/versions") - Observable> list(@Path("appId") UUID appId, @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> list(@Path("appId") UUID appId, @Query("skip") Integer skip, @Query("take") Integer take, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions get" }) @GET("apps/{appId}/versions/{versionId}/") - Observable> get(@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); + Observable> get(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions update" }) @PUT("apps/{appId}/versions/{versionId}/") - Observable> update(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body TaskUpdateObject versionUpdateObject, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> update(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Body TaskUpdateObject versionUpdateObject, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions delete" }) @HTTP(path = "apps/{appId}/versions/{versionId}/", method = "DELETE", hasBody = true) - Observable> delete(@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); + Observable> delete(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions export" }) @GET("apps/{appId}/versions/{versionId}/export") - Observable> export(@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); + Observable> export(@Path("appId") UUID appId, @Path("versionId") String versionId, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions importMethod" }) @POST("apps/{appId}/versions/import") - Observable> importMethod(@Path("appId") UUID appId, @Query("versionId") String versionId, @Body LuisApp luisApp, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> importMethod(@Path("appId") UUID appId, @Query("versionId") String versionId, @Body LuisApp luisApp, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.cognitiveservices.language.luis.authoring.Versions deleteUnlabelledUtterance" }) @HTTP(path = "apps/{appId}/versions/{versionId}/suggest", method = "DELETE", hasBody = true) - Observable> deleteUnlabelledUtterance(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body String utterance, @Header("accept-language") String acceptLanguage, @Header("x-ms-parameterized-host") String parameterizedHost, @Header("User-Agent") String userAgent); + Observable> deleteUnlabelledUtterance(@Path("appId") UUID appId, @Path("versionId") String versionId, @Body String utterance, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } @@ -160,9 +159,6 @@ public String call(ServiceResponse response) { * @return the observable to the String object */ public Observable> cloneWithServiceResponseAsync(UUID appId, String versionId, CloneOptionalParameter cloneOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -184,9 +180,6 @@ public Observable> cloneWithServiceResponseAsync(UUID ap * @return the observable to the String object */ public Observable> cloneWithServiceResponseAsync(UUID appId, String versionId, String version) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -198,8 +191,7 @@ public Observable> cloneWithServiceResponseAsync(UUID ap versionCloneObject = new TaskUpdateObject(); versionCloneObject.withVersion(version); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.clone(appId, versionId, this.client.acceptLanguage(), versionCloneObject, parameterizedHost, this.client.userAgent()) + return service.clone(appId, versionId, this.client.acceptLanguage(), versionCloneObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -330,9 +322,6 @@ public List call(ServiceResponse> response) { * @return the observable to the List<VersionInfo> object */ public Observable>> listWithServiceResponseAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -352,14 +341,10 @@ public Observable>> listWithServiceResponseAsy * @return the observable to the List<VersionInfo> object */ public Observable>> listWithServiceResponseAsync(UUID appId, Integer skip, Integer take) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.list(appId, skip, take, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.list(appId, skip, take, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @Override public Observable>> call(Response response) { @@ -489,17 +474,13 @@ public VersionInfo call(ServiceResponse response) { * @return the observable to the VersionInfo object */ public Observable> getWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.get(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.get(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -578,9 +559,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> updateWithServiceResponseAsync(UUID appId, String versionId, UpdateVersionsOptionalParameter updateOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -602,9 +580,6 @@ public Observable> updateWithServiceResponseAsy * @return the observable to the OperationStatus object */ public Observable> updateWithServiceResponseAsync(UUID appId, String versionId, String version) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -613,8 +588,7 @@ public Observable> updateWithServiceResponseAsy } TaskUpdateObject versionUpdateObject = new TaskUpdateObject(); versionUpdateObject.withVersion(version); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.update(appId, versionId, this.client.acceptLanguage(), versionUpdateObject, parameterizedHost, this.client.userAgent()) + return service.update(appId, versionId, this.client.acceptLanguage(), versionUpdateObject, this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -744,17 +718,13 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.delete(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.delete(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -828,17 +798,13 @@ public LuisApp call(ServiceResponse response) { * @return the observable to the LuisApp object */ public Observable> exportWithServiceResponseAsync(UUID appId, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() 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("{AzureRegion}", this.client.azureRegion()); - return service.export(appId, versionId, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.export(appId, versionId, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -917,9 +883,6 @@ public String call(ServiceResponse response) { * @return the observable to the String object */ public Observable> importMethodWithServiceResponseAsync(UUID appId, LuisApp luisApp, ImportMethodVersionsOptionalParameter importMethodOptionalParameter) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -942,9 +905,6 @@ public Observable> importMethodWithServiceResponseAsync( * @return the observable to the String object */ public Observable> importMethodWithServiceResponseAsync(UUID appId, LuisApp luisApp, String versionId) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -952,8 +912,7 @@ public Observable> importMethodWithServiceResponseAsync( throw new IllegalArgumentException("Parameter luisApp is required and cannot be null."); } Validator.validate(luisApp); - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.importMethod(appId, versionId, luisApp, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.importMethod(appId, versionId, luisApp, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { @@ -1087,9 +1046,6 @@ public OperationStatus call(ServiceResponse response) { * @return the observable to the OperationStatus object */ public Observable> deleteUnlabelledUtteranceWithServiceResponseAsync(UUID appId, String versionId, String utterance) { - if (this.client.azureRegion() == null) { - throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null."); - } if (appId == null) { throw new IllegalArgumentException("Parameter appId is required and cannot be null."); } @@ -1099,8 +1055,7 @@ public Observable> deleteUnlabelledUtteranceWit if (utterance == null) { throw new IllegalArgumentException("Parameter utterance is required and cannot be null."); } - String parameterizedHost = Joiner.on(", ").join("{AzureRegion}", this.client.azureRegion()); - return service.deleteUnlabelledUtterance(appId, versionId, utterance, this.client.acceptLanguage(), parameterizedHost, this.client.userAgent()) + return service.deleteUnlabelledUtterance(appId, versionId, utterance, this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/package-info.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/package-info.java index e6d68dd3291a..f4143ed60add 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/package-info.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/implementation/package-info.java @@ -5,6 +5,6 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the implementation classes for LUISAuthoringAPI. + * This package contains the implementation classes for LUISAuthoringClient. */ package com.microsoft.azure.cognitiveservices.language.luis.authoring.implementation; diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureRegions.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureRegions.java deleted file mode 100644 index 97c691ada928..000000000000 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/AzureRegions.java +++ /dev/null @@ -1,83 +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.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Defines values for AzureRegions. - */ -public enum AzureRegions { - /** Enum value westus. */ - WESTUS("westus"), - - /** Enum value westeurope. */ - WESTEUROPE("westeurope"), - - /** Enum value southeastasia. */ - SOUTHEASTASIA("southeastasia"), - - /** Enum value eastus2. */ - EASTUS2("eastus2"), - - /** Enum value westcentralus. */ - WESTCENTRALUS("westcentralus"), - - /** Enum value westus2. */ - WESTUS2("westus2"), - - /** Enum value eastus. */ - EASTUS("eastus"), - - /** Enum value southcentralus. */ - SOUTHCENTRALUS("southcentralus"), - - /** Enum value northeurope. */ - NORTHEUROPE("northeurope"), - - /** Enum value eastasia. */ - EASTASIA("eastasia"), - - /** Enum value australiaeast. */ - AUSTRALIAEAST("australiaeast"), - - /** Enum value brazilsouth. */ - BRAZILSOUTH("brazilsouth"); - - /** The actual serialized value for a AzureRegions instance. */ - private String value; - - AzureRegions(String value) { - this.value = value; - } - - /** - * Parses a serialized value to a AzureRegions instance. - * - * @param value the serialized value to parse. - * @return the parsed AzureRegions object, or null if unable to parse. - */ - @JsonCreator - public static AzureRegions fromString(String value) { - AzureRegions[] items = AzureRegions.values(); - for (AzureRegions item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; - } - - @JsonValue - @Override - public String toString() { - return this.value; - } -} diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/package-info.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/package-info.java index 7549db34ad96..3378ca260991 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/package-info.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/models/package-info.java @@ -5,6 +5,6 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the models classes for LUISAuthoringAPI. + * This package contains the models classes for LUISAuthoringClient. */ package com.microsoft.azure.cognitiveservices.language.luis.authoring.models; diff --git a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/package-info.java b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/package-info.java index 2ee71002282e..b9afefe3c7c8 100644 --- a/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/package-info.java +++ b/cognitiveservices/data-plane/language/luis/authoring/src/main/java/com/microsoft/azure/cognitiveservices/language/luis/authoring/package-info.java @@ -5,6 +5,6 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * This package contains the classes for LUISAuthoringAPI. + * This package contains the classes for LUISAuthoringClient. */ package com.microsoft.azure.cognitiveservices.language.luis.authoring; diff --git a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/CustomVisionPredictionManager.java b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/CustomVisionPredictionManager.java index 532df3c8e1e2..cd0c09735463 100644 --- a/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/CustomVisionPredictionManager.java +++ b/cognitiveservices/data-plane/vision/customvision/prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/CustomVisionPredictionManager.java @@ -9,12 +9,7 @@ import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.implementation.PredictionEndpointImpl; import com.microsoft.rest.RestClient; import com.microsoft.rest.credentials.ServiceClientCredentials; -import okhttp3.Interceptor; import okhttp3.OkHttpClient; -import okhttp3.Request; -import okhttp3.Response; - -import java.io.IOException; /** * Entry point to Azure Cognitive Services Custom Vision Prediction manager. @@ -23,51 +18,38 @@ public class CustomVisionPredictionManager { /** * Initializes an instance of Custom Vision Prediction API client. * - * @param subscriptionKey the Custom Vision Prediction API key + * @param apiKey the Custom Vision Prediction API key * @return the Computer Vision API client */ - public static PredictionEndpoint authenticate(String subscriptionKey) { - return authenticate("https://{endpoint}/vision/v2.0/", subscriptionKey); + public static PredictionEndpoint authenticate(String apiKey) { + return authenticate("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction/", apiKey); } /** * Initializes an instance of Custom Vision Prediction API client. * * @param baseUrl the base URL of the service - * @param subscriptionKey the Custom Vision Prediction API key + * @param apiKey the Custom Vision Prediction API key * @return the Custom Vision Prediction API client */ - public static PredictionEndpoint authenticate(String baseUrl, final String subscriptionKey) { + public static PredictionEndpoint authenticate(String baseUrl, final String apiKey) { ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { @Override public void applyCredentialsFilter(OkHttpClient.Builder builder) { - builder.addNetworkInterceptor( - new Interceptor() { - @Override - public Response intercept(Chain chain) throws IOException, IOException { - Request request = null; - Request original = chain.request(); - // Request customization: add request headers - Request.Builder requestBuilder = original.newBuilder() - .addHeader("Ocp-Apim-Subscription-Key", subscriptionKey); - request = requestBuilder.build(); - return chain.proceed(request); - } - }); } }; - return authenticate(baseUrl, serviceClientCredentials); + return authenticate(baseUrl, serviceClientCredentials, apiKey); } /** * Initializes an instance of Custom Vision Prediction API client. * * @param credentials the management credentials for Azure - * @param endpoint Supported Cognitive Services endpoints. + * @param apiKey the Custom Vision Prediction API key * @return the Computer Vision API client */ - public static PredictionEndpoint authenticate(ServiceClientCredentials credentials, String endpoint) { - return authenticate("https://{endpoint}/vision/v2.0/", credentials); + public static PredictionEndpoint authenticate(ServiceClientCredentials credentials, final String apiKey) { + return authenticate("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.0/Prediction/", credentials, apiKey); } /** @@ -75,19 +57,21 @@ public static PredictionEndpoint authenticate(ServiceClientCredentials credentia * * @param baseUrl the base URL of the service * @param credentials the management credentials for Azure + * @param apiKey the Custom Vision Prediction API key * @return the Custom Vision Prediction API client */ - public static PredictionEndpoint authenticate(String baseUrl, ServiceClientCredentials credentials) { - return new PredictionEndpointImpl(baseUrl, credentials); + public static PredictionEndpoint authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey) { + return new PredictionEndpointImpl(baseUrl, credentials).withApiKey(apiKey); } /** * Initializes an instance of Custom Vision Prediction API client. * * @param restClient the REST client to connect to Azure. + * @param apiKey the Custom Vision Prediction API key * @return the Custom Vision Prediction API client */ - public static PredictionEndpoint authenticate(RestClient restClient) { - return new PredictionEndpointImpl(restClient); + public static PredictionEndpoint authenticate(RestClient restClient, final String apiKey) { + return new PredictionEndpointImpl(restClient).withApiKey(apiKey); } } diff --git a/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/CustomVisionTrainingManager.java b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/CustomVisionTrainingManager.java new file mode 100644 index 000000000000..89b9f5daca58 --- /dev/null +++ b/cognitiveservices/data-plane/vision/customvision/training/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/training/CustomVisionTrainingManager.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.cognitiveservices.vision.customvision.training; + +import com.microsoft.azure.cognitiveservices.vision.customvision.training.implementation.TrainingApiImpl; +import com.microsoft.rest.RestClient; +import com.microsoft.rest.credentials.ServiceClientCredentials; +import okhttp3.OkHttpClient; + +/** + * Entry point to Azure Cognitive Services Custom Vision Training manager. + */ +public class CustomVisionTrainingManager { + /** + * Initializes an instance of Custom Vision Training API client. + * + * @param apiKey the Custom Vision Training API key + * @return the Computer Vision Training API client + */ + public static TrainingApi authenticate(String apiKey) { + return authenticate("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.1/Training/", apiKey); + } + + /** + * Initializes an instance of Custom Vision Training API client. + * + * @param baseUrl the base URL of the service + * @param apiKey the Custom Vision Training API key + * @return the Custom Vision Training API client + */ + public static TrainingApi authenticate(String baseUrl, final String apiKey) { + ServiceClientCredentials serviceClientCredentials = new ServiceClientCredentials() { + @Override + public void applyCredentialsFilter(OkHttpClient.Builder builder) { + } + }; + return authenticate(baseUrl, serviceClientCredentials, apiKey); + } + + /** + * Initializes an instance of Custom Vision Training API client. + * + * @param credentials the management credentials for Azure + * @param apiKey the Custom Vision Training API key + * @return the Computer Vision Training API client + */ + public static TrainingApi authenticate(ServiceClientCredentials credentials, final String apiKey) { + return authenticate("https://southcentralus.api.cognitive.microsoft.com/customvision/v2.1/Training/", credentials, apiKey); + } + + /** + * Initializes an instance of Custom Vision Training API client. + * + * @param baseUrl the base URL of the service + * @param credentials the management credentials for Azure + * @param apiKey the Custom Vision Training API key + * @return the Custom Vision Training API client + */ + public static TrainingApi authenticate(String baseUrl, ServiceClientCredentials credentials, final String apiKey) { + return new TrainingApiImpl(baseUrl, credentials).withApiKey(apiKey); + } + + /** + * Initializes an instance of Custom Vision Training API client. + * + * @param restClient the REST client to connect to Azure. + * @param apiKey the Custom Vision Training API key + * @return the Custom Vision Training API client + */ + public static TrainingApi authenticate(RestClient restClient, final String apiKey) { + return new TrainingApiImpl(restClient).withApiKey(apiKey); + } +}